Skip to content

Merge pull request #323 from 0xsequence/V5-EcosystemWallet #4

Merge pull request #323 from 0xsequence/V5-EcosystemWallet

Merge pull request #323 from 0xsequence/V5-EcosystemWallet #4

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' )