From ab99d9607256c31bb4f597c882396bb4e1ebb995 Mon Sep 17 00:00:00 2001 From: Valerie Date: Tue, 21 Nov 2023 17:55:41 -0500 Subject: [PATCH] feat(maven-release): add maven release actio --- .github/workflows/maven_release.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/maven_release.yml diff --git a/.github/workflows/maven_release.yml b/.github/workflows/maven_release.yml new file mode 100644 index 0000000..f109323 --- /dev/null +++ b/.github/workflows/maven_release.yml @@ -0,0 +1,20 @@ +name: Publish package to GitHub Packages +on: + release: + types: [published] +jobs: + publish: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + - name: Publish package + run: mvn --batch-mode deploy + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}