Skip to content

Commit ecd05c5

Browse files
test workflow
1 parent 185727b commit ecd05c5

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed
Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ jobs:
1414
- name: Set up Maven Central Repository
1515
uses: actions/setup-java@v3
1616
with:
17-
java-version: '11'
18-
distribution: 'adopt'
17+
java-version: "11"
18+
distribution: "adopt"
1919
server-id: ossrh
2020
server-username: MAVEN_USERNAME
2121
server-password: MAVEN_PASSWORD
@@ -26,15 +26,17 @@ jobs:
2626
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
2727
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
2828
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
29+
publish-github:
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v3
2933
- name: Set up Java for publishing to GitHub Packages
34+
uses: actions/setup-java@v3
35+
with:
36+
java-version: "8"
37+
distribution: "adopt"
38+
server-id: github
39+
- name: Publish to GitHub Packages
3040
run: mvn --batch-mode deploy
3141
env:
3242
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33-
- name: Add coverage to PR
34-
id: jacoco
35-
uses: madrapps/jacoco-report@v1.3
36-
with:
37-
paths: ${{ github.workspace }}/target/site/surefire-report.html
38-
token: ${{ secrets.GITHUB_TOKEN }}
39-
min-coverage-overall: 40
40-
min-coverage-changed-files: 60

0 commit comments

Comments
 (0)