Skip to content

Commit

Permalink
try to publish to maven
Browse files Browse the repository at this point in the history
  • Loading branch information
johrstrom committed Jul 30, 2023
1 parent f6aa45d commit aeaa6b5
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Publish Jar

on:
push:
tags:
- '*'

jobs:
release:
runs-on: 'ubuntu-latest'

steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
cache: maven
server-id: ossrh
server-username: MY_MAVEN_USERNAME
server-password: MY_MAVEN_PASSWORD
- name: Publish package
run: mvn --batch-mode deploy
env:
MAVEN_USERNAME: ${{ secrets.MY_MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MY_MAVEN_PASSWORD }}


0 comments on commit aeaa6b5

Please sign in to comment.