diff --git a/.github/workflows/Activate.yml b/.github/workflows/Activate.yml new file mode 100644 index 0000000..0827bbd --- /dev/null +++ b/.github/workflows/Activate.yml @@ -0,0 +1,18 @@ +name: Acquire activation file +on: + workflow_dispatch: {} +jobs: + activation: + name: Request manual activation file 🔑 + runs-on: ubuntu-latest + steps: + # Request manual activation file + - name: Request manual activation file + id: getManualLicenseFile + uses: game-ci/unity-request-activation-file@v2 + # Upload artifact (Unity_v20XX.X.XXXX.alf) + - name: Expose as artifact + uses: actions/upload-artifact@v2 + with: + name: ${{ steps.getManualLicenseFile.outputs.filePath }} + path: ${{ steps.getManualLicenseFile.outputs.filePath }} diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..649b96d --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,15 @@ +name: Build +on: + workflow_dispatch: {} +jobs: + activation: + name: Build for Windows 🔑 + runs-on: ubuntu-latest + steps: + - uses: game-ci/unity-builder@v2 + env: + UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} + UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} + UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} + with: + targetPlatform: Windows