You've already forked PythonLib
mirror of
https://github.com/lifebottle/PythonLib.git
synced 2026-02-13 15:25:50 -08:00
58 lines
1.3 KiB
YAML
58 lines
1.3 KiB
YAML
name: Generate New SLPS and Release
|
|
|
|
on:
|
|
workflow_dispatch
|
|
|
|
env:
|
|
base_directory: c:/actions-runner/_work/
|
|
|
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
|
jobs:
|
|
startVM:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
|
|
#Test again
|
|
- name: Login to AZ CLI
|
|
uses: azure/login@v1
|
|
with:
|
|
creds: ${{ secrets.AZURE_CREDENTIALS }}
|
|
|
|
- run:
|
|
az vm start -g ${{ secrets.AZURE_RESSOURCE }} -n ${{ secrets.AZURE_VM }}
|
|
|
|
pythonCode:
|
|
runs-on: self-hosted
|
|
needs: startVM
|
|
steps:
|
|
|
|
- name: Checkout PythonLib
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
- name: Checkout TOR Repo
|
|
uses: actions/checkout@v3
|
|
with:
|
|
repository: SymphoniaLauren/Tales-of-Rebirth
|
|
path: ${{env.base_directory}}
|
|
|
|
|
|
|
|
- name: Generate New SLPS
|
|
working-directory: ${{env.base_directory}}
|
|
run:
|
|
python ${{env.base_directory}}/PythonLib/ToolsTales_Executable.py --game TOR pack SLPS
|
|
|
|
closeVM:
|
|
runs-on: ubuntu-latest
|
|
needs: pythonCode
|
|
steps:
|
|
|
|
- name: Login to AZ CLI
|
|
uses: azure/login@v1
|
|
with:
|
|
creds: ${{ secrets.AZURE_CREDENTIALS }}
|
|
|
|
- run:
|
|
az vm stop -g ${{ secrets.AZURE_RESSOURCE }} -n ${{ secrets.AZURE_VM }}
|