From a839c37cdedf60746722018f1303ad2fe3af762a Mon Sep 17 00:00:00 2001 From: Zadkiel AHARONIAN Date: Tue, 1 Oct 2024 17:33:15 +0200 Subject: [PATCH] ci: generate release with automatic changelog --- .github/workflows/release.yaml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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