From 568090c76337c4bb08c268b3c2e11d686a00620d Mon Sep 17 00:00:00 2001 From: fortiersteven <74146408+fortiersteven@users.noreply.github.com> Date: Sun, 20 Mar 2022 13:56:14 -0400 Subject: [PATCH] Create SLPS_prerelease.yml --- .github/workflows/SLPS_prerelease.yml | 55 +++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 .github/workflows/SLPS_prerelease.yml diff --git a/.github/workflows/SLPS_prerelease.yml b/.github/workflows/SLPS_prerelease.yml new file mode 100644 index 0000000..1d984d5 --- /dev/null +++ b/.github/workflows/SLPS_prerelease.yml @@ -0,0 +1,55 @@ +name: Generate New SLPS and Release + +on: + workflow_dispatch + +env: + base_directory: c:/actions-runner/_work/PythonLib/ + +# 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 TOR Repo + uses: actions/checkout@v2 + with: + repository: SymphoniaLauren/Tales-of-Rebirth + + - name: Checkout PythonLib + uses: actions/checkout@v2 + + + + - name: Generate New SLPS + working-directory: ${{env.base_directory}} + run: + python ${{env.base_directory}}/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 }}