From bf8fd017f73dbd9e641ffca4b2072352fa9606cd Mon Sep 17 00:00:00 2001 From: Kristof Kovacs <49001742+kristofbolyai@users.noreply.github.com> Date: Wed, 23 Aug 2023 12:01:35 +0200 Subject: [PATCH] chore: move to jitpack.yml --- .github/workflows/maven-publish.yml | 33 ----------------------------- jitpack.yml | 5 +++++ pom.xml | 10 +-------- 3 files changed, 6 insertions(+), 42 deletions(-) delete mode 100644 .github/workflows/maven-publish.yml create mode 100644 jitpack.yml diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml deleted file mode 100644 index 1112168..0000000 --- a/.github/workflows/maven-publish.yml +++ /dev/null @@ -1,33 +0,0 @@ -# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created -# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path - -name: Maven Package - -on: - release: - types: [created] - -jobs: - build: - runs-on: ubuntu-latest - permissions: - contents: read - packages: write - steps: - - uses: actions/checkout@v3 - - name: Set up JDK 11 - uses: actions/setup-java@v3 - with: - java-version: '11' - distribution: 'temurin' - server-id: github # Value of the distributionManagement/repository/id field of the pom.xml - settings-path: ${{ github.workspace }} # location for the settings.xml file - - name: Build with Maven - run: mvn -B -DskipTests -Dmaven.antrun.skip=true package --file pom.xml - - name: Publish to GitHub Packages Apache Maven - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - mkdir -p ~/.m2 - echo "githubOWNER${GITHUB_TOKEN}" > ~/.m2/settings.xml - mvn deploy -B -DskipTests -Dmaven.antrun.skip=true diff --git a/jitpack.yml b/jitpack.yml new file mode 100644 index 0000000..a1579d3 --- /dev/null +++ b/jitpack.yml @@ -0,0 +1,5 @@ +jdk: + - openjdk11 +install: + - mkdir -p ~/.m2 + - mvn clean install -Dmaven.antrun.skip=true \ No newline at end of file diff --git a/pom.xml b/pom.xml index d782f2c..0b21caf 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 com.wynntils antiope - 0.2.1 + 0.2.2 Antiope Java bindings for Discord's Game SDK @@ -283,12 +283,4 @@ - - - - github - GitHub Packages - https://maven.pkg.github.com/wynntils/antiope - -