Skip to content

Commit

Permalink
only deploy badge on push
Browse files Browse the repository at this point in the history
  • Loading branch information
mozzy11 committed Nov 4, 2024
1 parent 66edaa1 commit 0d6ac5a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,14 @@ jobs:
run: mvn clean install -Dspotless.check.skip=true

- name: Generate JaCoCo Badge
if: github.event_name == 'push'
uses: cicirello/jacoco-badge-generator@v2
with:
jacoco-csv-file: target/site/jacoco/jacoco.csv
badges-directory: target/html/badges

- name: Publish coverage report to GitHub Pages
if: github.event_name == 'push'
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: target/html/

0 comments on commit 0d6ac5a

Please sign in to comment.