From e701e3cf4080976ca04396f81e035cc067cbc3c6 Mon Sep 17 00:00:00 2001 From: Benoit Orihuela Date: Mon, 23 Oct 2023 18:58:08 +0200 Subject: [PATCH] feat: add GH action to publish package to GH Packages --- .github/workflows/publish.yml | 20 ++++++++++++++++++++ pom.xml | 8 ++++++++ 2 files changed, 28 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..4fd7ac5 --- /dev/null +++ b/.github/workflows/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@v3 + with: + java-version: '17' + 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 3fb6d42..d65f261 100644 --- a/pom.xml +++ b/pom.xml @@ -97,6 +97,14 @@ + + + github + GitHub Packages + https://maven.pkg.github.com/easy-global-market/nifi-file-identity-provider-bundle + + + org.junit.jupiter