From 960bbd432dc9733b2f68b4e18c9ea8558424f804 Mon Sep 17 00:00:00 2001 From: forntoh Date: Thu, 10 Oct 2024 16:36:15 +0200 Subject: [PATCH] Migrate away from archived release action Updated GitHub release action to softprops/action-gh-release@v2 --- .github/workflows/publish.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index de4caba1..6dc13b28 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -10,6 +10,9 @@ on: description: "Version to update if not incrementing" required: false +permissions: + contents: write + jobs: publish: name: Prepare Release @@ -114,14 +117,17 @@ jobs: - name: Create GitHub Release if: steps.check_tag.outputs.tag_exists == 'false' - uses: actions/create-release@v1 + uses: softprops/action-gh-release@v2 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tag_name: ${{ env.UPDATED_VERSION }} - release_name: LcdMenu v${{ env.UPDATED_VERSION }} + name: LcdMenu v${{ env.UPDATED_VERSION }} draft: false prerelease: false + generate_release_notes: false + make_latest: true + token: ${{ secrets.GH_PAT }} body: ${{ steps.generate_release_notes.outputs.release_notes }} - name: Update GitHub Release