From eccd7b888c1842223984a1a9274a16d4c353f7eb Mon Sep 17 00:00:00 2001 From: riccardodebenedictis Date: Mon, 5 Dec 2022 23:43:55 +0100 Subject: [PATCH] added github action.. --- .github/workflows/java.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/java.yml diff --git a/.github/workflows/java.yml b/.github/workflows/java.yml new file mode 100644 index 0000000..02b4019 --- /dev/null +++ b/.github/workflows/java.yml @@ -0,0 +1,20 @@ +name: Publish package to GitHub Packages +on: + release: + types: [created, edited] +jobs: + publish: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 + with: + java-version: "11" + distribution: "adopt" + - name: Publish package + run: mvn --batch-mode deploy + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}