diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 1f72f350..524d7a99 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -9,6 +9,9 @@ jobs: name: Release runs-on: ubuntu-latest + permissions: + contents: write + steps: - name: Check out code uses: actions/checkout@v4 @@ -16,15 +19,15 @@ jobs: fetch-depth: 0 # See: https://goreleaser.com/ci/actions/ - name: Create Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: softprops/action-gh-release@v2 with: + name: ${{ github.ref }} tag_name: ${{ github.ref }} - release_name: ${{ github.ref }} + token: ${{ secrets.GITHUB_TOKEN }} + generate_release_notes: true draft: false prerelease: false + make_latest: true - name: Notify Slack uses: 8398a7/action-slack@v3