Merge pull request #323 from 0xsequence/V5-EcosystemWallet #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Unity Build Automation Release | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| run-on-merge: | |
| runs-on: ubuntu-latest | |
| environment: github-pages | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| target: | |
| - ios-production | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Trigger Cloud Build | |
| id: trigger | |
| run: | | |
| branch_name="${{ github.head_ref || github.ref_name }}" | |
| build_number=$(curl -s -X POST \ | |
| -H "Authorization: Basic ${{ secrets.UNITY_API_KEY }}" \ | |
| -H "Content-Type: application/json" \ | |
| -d "{\"clean\": true, \"delay\": 0, \"commit\": null, \"headless\": true, \"branch\": \"$branch_name\"}" \ | |
| https://build-api.cloud.unity3d.com/api/v1/orgs/6872789246035/projects/5fac262b-e52e-42f7-a9d6-d4464b2ff80e/buildtargets/${{ matrix.target }}/builds \ | |
| | jq '.[0].build' ) |