From d3b18039d23dbc059c3eeceb7680fbd121a2762f Mon Sep 17 00:00:00 2001 From: pavelvazquez Date: Mon, 28 Aug 2023 10:45:34 +0200 Subject: [PATCH] test of the publish action --- .github/workflows/publish.yml | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 41de4bf..9f030ef 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,28 +1,21 @@ -name: Publish Maven artifact to GitHub Packages - +name: Publish package to GitHub Packages on: release: - tags: - - 'v*' - workflow_dispatch: - + types: [created] jobs: - publish: - runs-on: ubuntu-latest permissions: - packages: write contents: read + packages: write steps: - - - uses: actions/checkout@v2 - - uses: actions/setup-java@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 with: - distribution: 'zulu' java-version: '17' - + distribution: 'temurin' - name: Publish package run: mvn --batch-mode deploy env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +