Skip to content

Commit

Permalink
ci(workflow): restrict the deploy job only if the branch is main (#140
Browse files Browse the repository at this point in the history
)
  • Loading branch information
threeal authored Oct 29, 2023
1 parent e6d3026 commit 8f66a6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:

deploy:
name: Deploy
if: github.event_name != 'pull_request'
if: github.event_name != 'pull_request' && github.ref_name == 'main'
needs: test
runs-on: ubuntu-latest
permissions:
Expand Down

0 comments on commit 8f66a6c

Please sign in to comment.