Barazo AppView backend barazo.forum
at main 29 lines 846 B view raw
1name: Deploy to Staging 2 3on: 4 push: 5 branches: 6 - main 7 8permissions: {} 9 10jobs: 11 trigger-deploy: 12 name: Trigger Staging Deploy 13 runs-on: ubuntu-latest 14 steps: 15 # Sync the workspace lockfile first, then let it trigger the deploy. 16 # This avoids a race condition where the deploy starts with a stale 17 # lockfile before the sync has committed the updated one. 18 - name: Sync lockfile and deploy 19 uses: peter-evans/repository-dispatch@28959ce8df70de7be546dd1250a005dd32156697 # v4.0.1 20 with: 21 token: ${{ secrets.DEPLOY_PAT }} 22 repository: singi-labs/barazo-workspace 23 event-type: sync-lockfile 24 client-payload: | 25 { 26 "trigger_repo": "barazo-api", 27 "api_ref": "${{ github.sha }}", 28 "web_ref": "main" 29 }