Skip to content

Commit

Permalink
Update deployment configuration for main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
andersy005 committed Sep 18, 2024
1 parent 45ae5eb commit b5be9cc
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
name: Fly Deploy
on: [push]
on:
push:
branches:
- main
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
PRODUCTION_URL: 'https://html-reprs.fly.dev/docs'
STAGING_URL: 'https://html-reprs.fly.dev/docs'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -11,6 +16,9 @@ jobs:
deploy:
name: Deploy app
runs-on: ubuntu-latest
environment:
name: ${{ github.ref == 'refs/heads/main' && 'production' || 'staging' }}
url: ${{ github.ref == 'refs/heads/main' && env.PRODUCTION_URL || env.STAGING_URL }}
steps:
- uses: actions/checkout@v4
- uses: superfly/flyctl-actions/setup-flyctl@master
Expand Down

0 comments on commit b5be9cc

Please sign in to comment.