From e98134e1c1f8655c20da3c16fd6ecf958f185085 Mon Sep 17 00:00:00 2001 From: tschuchortdev Date: Fri, 9 Aug 2024 18:28:26 +0200 Subject: [PATCH] Use new release action --- .github/workflows/ci.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 24021cc..2683bf7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,6 +42,9 @@ jobs: if: (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags')) && (github.event_name == 'push' || github.event_name == 'create') && github.repository == 'tschuchortdev/hkd4s' + concurrency: + group: publishing + cancel-in-progress: true env: SONATYPE_NEXUS_USERNAME: ${{ secrets.SONATYPE_NEXUS_USERNAME }} SONATYPE_NEXUS_PASSWORD: ${{ secrets.SONATYPE_NEXUS_PASSWORD }} @@ -86,12 +89,11 @@ jobs: echo EOF } >> "$GITHUB_ENV" - name: Make release on Github - uses: marvinpinto/action-automatic-releases@latest + uses: softprops/action-gh-release@v2 if: ${{ env.IS_SNAPSHOT_VERSION == 'false' }} with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - automatic_release_tag: v${{ env.VERSION_NAME }} - prerelease: false - title: ${{ env.VERSION_NAME }} + name: ${{ env.VERSION_NAME }} + tag_name: v${{ env.VERSION_NAME }} files: | ${{ env.ARTIFACT_PATHS }} + fail_on_unmatched_files: true