Skip to content

Commit

Permalink
Deploy to GitHub only from main.
Browse files Browse the repository at this point in the history
  • Loading branch information
kirkrodrigues committed Dec 5, 2023
1 parent 1a17d6c commit bd6a830
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: "Build package and run tests"
run: "mvn --batch-mode test"

- if: "github.event_name != 'pull_request'"
- if: "${{github.event_name != 'pull_request' && github.ref == 'refs/heads/main'}}"
name: "Deploy to GitHub"
env:
GITHUB_TOKEN: "${{secrets.GITHUB_TOKEN}}"
Expand Down

0 comments on commit bd6a830

Please sign in to comment.