From 6f333a84cec30de96e15d991edb439bdff17b36a Mon Sep 17 00:00:00 2001 From: Konstantin Alekseev Date: Wed, 10 Jul 2024 16:55:55 +0300 Subject: [PATCH] fix(ci): fix github release --- .github/workflows/main.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0106d93..4796ed4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -90,6 +90,7 @@ jobs: environment: release permissions: id-token: write + contents: write steps: - uses: actions/checkout@v4 - name: Set release env @@ -118,12 +119,10 @@ jobs: uses: pypa/gh-action-pypi-publish@release/v1 - name: Create Release id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: softprops/action-gh-release@v2 with: tag_name: ${{ github.ref }} - release_name: Release ${{ steps.release_output.outputs.VERSION }} + name: Release ${{ steps.release_output.outputs.VERSION }} body: ${{ steps.release_output.outputs.BODY }} draft: false prerelease: ${{ contains(steps.release_output.outputs.VERSION, 'rc') || contains(steps.release_output.outputs.VERSION, 'b') || contains(steps.release_output.outputs.VERSION, 'a') }}