Skip to content

Commit

Permalink
add flyctl to actions
Browse files Browse the repository at this point in the history
  • Loading branch information
martinjirku committed Dec 18, 2023
1 parent 5f2d7fa commit 5998182
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build and deploy

on:
push:
branches: ["dev", "main"]
branches: ["migration-to-golang", "dev", "main"]
env:
FLY_API_TOKEN: ${{ secrets. FLY_API_TOKEN }}
jobs:
Expand All @@ -18,6 +18,8 @@ jobs:
file: fly.toml
field: app

- uses: superfly/flyctl-actions/setup-flyctl@master

- name: 🚀 Deploy Staging
if: ${{ github.ref == 'refs/heads/dev' }}
run: flyctl deploy --remote-only --region waw --build-arg COMMIT_SHA=${{ github.sha }} --app ${{ steps.app_name.outputs.value }}-staging
Expand Down

0 comments on commit 5998182

Please sign in to comment.