Skip to content

Commit

Permalink
Merge pull request #64 from geolonia/ci-deploy-on-release
Browse files Browse the repository at this point in the history
Deploy on release, not on merge to `main`
  • Loading branch information
phanect authored Sep 21, 2023
2 parents 7827206 + f4edd6a commit a7efcc5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,9 @@ jobs:
!./node_modules/**/*
deploy:
# We only need to deploy if we're on the main branch
if: github.ref == 'refs/heads/main'

needs:
- build
if: github.event_name == 'release'

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
Expand Down

0 comments on commit a7efcc5

Please sign in to comment.