Merge pull request #13 from anGie44/fix-prod-workflow #8
This file contains 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: Prod Deploy | |
on: | |
push: | |
branches: [main] | |
paths-ignore: | |
- README.md | |
- 'json_examples/**' | |
- 'models/**' | |
- .github/workflows/staging-deploy.yaml | |
- fly.staging.toml | |
concurrency: | |
group: ${{ github.workflow }} | |
jobs: | |
build: | |
name: Build App | |
runs-on: ubuntu-latest | |
environment: production | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: superfly/flyctl-actions/setup-flyctl@master | |
- run: flyctl deploy --build-only --remote-only | |
env: | |
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} | |
deploy: | |
needs: build | |
name: Deploy App | |
runs-on: ubuntu-latest | |
environment: production | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: superfly/flyctl-actions/setup-flyctl@master | |
- run: flyctl deploy --remote-only | |
env: | |
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} | |