From c7d8a593e3353cdae30232ec33a7b1c66a10f235 Mon Sep 17 00:00:00 2001 From: Nikolai Connolly Date: Tue, 20 Aug 2024 15:49:58 -0500 Subject: [PATCH] github actions --- .github/workflows/publish.yml | 25 +++++++++++++++++++++++++ .gitignore | 3 ++- jitpack.yml | 7 ------- 3 files changed, 27 insertions(+), 8 deletions(-) create mode 100644 .github/workflows/publish.yml delete mode 100644 jitpack.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..0f6ee55 --- /dev/null +++ b/.github/workflows/publish.yml @@ -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 }} \ No newline at end of file diff --git a/.gitignore b/.gitignore index e68b151..0ec8f8b 100644 --- a/.gitignore +++ b/.gitignore @@ -43,4 +43,5 @@ build/ .vscode/ ### Mac OS ### -.DS_Store \ No newline at end of file +.DS_Store +act.exe diff --git a/jitpack.yml b/jitpack.yml deleted file mode 100644 index 6a686c9..0000000 --- a/jitpack.yml +++ /dev/null @@ -1,7 +0,0 @@ -before_install: - - sdk install java 17.0.1.hs-adpt - - sdk use java 17.0.1.hs-adpt -jdk: - - openjdk17 -install: - - mvn package -DskipTests=true -Dmaven.javadoc.skip=true -B -V \ No newline at end of file