From f0443b2da48f0272d4b17a4c2bb2d08bcac6ca52 Mon Sep 17 00:00:00 2001 From: Kono Tyran Date: Sat, 18 May 2024 21:50:37 -0700 Subject: [PATCH] Attempt 1 at github packages. --- .github/workflows/maven-publish.yml | 20 ++++++++++++++++++++ pom.xml | 9 +++++++++ 2 files changed, 29 insertions(+) create mode 100644 .github/workflows/maven-publish.yml diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml new file mode 100644 index 0000000..f3a05ee --- /dev/null +++ b/.github/workflows/maven-publish.yml @@ -0,0 +1,20 @@ +name: Publish package to GitHub Packages +on: + release: + types: [created] +jobs: + publish: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + java-version: '11' + distribution: 'temurin' + - name: Publish package + run: mvn --batch-mode deploy + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/pom.xml b/pom.xml index ec53e53..ed90f74 100644 --- a/pom.xml +++ b/pom.xml @@ -42,4 +42,13 @@ + + + github + GitHub konotyran Apache Maven Packages + https://maven.pkg.github.com/konotyran/Archipelago.MultiClient.Java + + + + \ No newline at end of file