music on atproto
plyr.fm
1name: deploy prod
2
3on:
4 release:
5 types: [published]
6
7jobs:
8 deploy:
9 name: deploy prod
10 runs-on: ubuntu-latest
11 concurrency: deploy-backend-production
12 steps:
13 - uses: actions/checkout@v4
14
15 - name: detect changes
16 uses: dorny/paths-filter@v3
17 id: changes
18 with:
19 filters: .github/path-filters.yml
20
21 - uses: superfly/flyctl-actions/setup-flyctl@master
22
23 - name: deploy to fly.io production
24 run: |
25 if [ "${{ steps.changes.outputs.migrations }}" == "true" ]; then
26 echo "🔄 migrations detected - will run via release_command before deployment"
27 fi
28 flyctl deploy --config backend/fly.toml --remote-only -a relay-api .
29 env:
30 FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN_PROD }}