Skip to content

Commit

Permalink
chore: 試著在 master push 時發到 prod
Browse files Browse the repository at this point in the history
  • Loading branch information
sexyoung committed Aug 24, 2023
1 parent ee3a6a6 commit eab731a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Expand Up @@ -3,7 +3,7 @@ name: 🚀 Deploy
on:
push:
branches:
- main
- master
- dev
pull_request:

Expand Down Expand Up @@ -114,8 +114,8 @@ jobs:
name: 🚀 Deploy
runs-on: ubuntu-latest
needs: [lint, typecheck, vitest, cypress]
# only build/deploy main branch on pushes
if: ${{ (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev') && github.event_name == 'push' }}
# only build/deploy master branch on pushes
if: ${{ (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev') && github.event_name == 'push' }}

steps:
- name: ⬇️ Checkout repo
Expand All @@ -137,7 +137,7 @@ jobs:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}

- name: 🚀 Deploy Production
if: ${{ github.ref == 'refs/heads/main' }}
if: ${{ github.ref == 'refs/heads/master' }}
uses: superfly/flyctl-actions@1.4
with:
args: deploy --remote-only --build-arg COMMIT_SHA=${{ github.sha }} --app ${{ steps.app_name.outputs.value }}
Expand Down

0 comments on commit eab731a

Please sign in to comment.