Skip to content

Commit

Permalink
github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
casperwtf committed Aug 20, 2024
1 parent df6b108 commit c7d8a59
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 8 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Publish package to the Maven Central Repository

on:
push:
# only trigger on branches, not on tags
branches: '**'

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Maven Central Repository
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Publish package
run: mvn --batch-mode deploy
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@ build/
.vscode/

### Mac OS ###
.DS_Store
.DS_Store
act.exe
7 changes: 0 additions & 7 deletions jitpack.yml

This file was deleted.

0 comments on commit c7d8a59

Please sign in to comment.