Skip to content

Commit

Permalink
Merge pull request #39 from sciencesakura/ci_publish
Browse files Browse the repository at this point in the history
Publish packages to registry in CI
  • Loading branch information
sciencesakura authored Jul 1, 2023
2 parents 9b548a1 + 026f341 commit e9c9884
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ jobs:
distribution: zulu
java-version: 11
cache: maven
- run: ./mvnw -e validate
- run: ./mvnw -e --batch-mode validate
22 changes: 22 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: publish
on:
push:
branches:
- master
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 11
cache: maven
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- run: ./mvnw -e --batch-mode deploy
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}

0 comments on commit e9c9884

Please sign in to comment.