Skip to content

Merge pull request #13 from anGie44/fix-prod-workflow #8

Merge pull request #13 from anGie44/fix-prod-workflow

Merge pull request #13 from anGie44/fix-prod-workflow #8

Workflow file for this run

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 }}