diff --git a/.github/workflows/Tag-and-Release.yml b/.github/workflows/Tag-and-Release.yml index 735651b..9095fcd 100644 --- a/.github/workflows/Tag-and-Release.yml +++ b/.github/workflows/Tag-and-Release.yml @@ -17,7 +17,7 @@ jobs: # Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job. permissions: - contents: read + contents: write packages: write attestations: write id-token: write @@ -26,12 +26,14 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 + with: + token: ${{ secrets.GITHUB_TOKEN }} - name: Setup Git run: | git config --local user.email "github-actions[bot]@users.noreply.github.com" git config --local user.name "github-actions[bot]" - name: Setup PDM - uses: pdm-project/setup-pdm@v4 + uses: pdm-project/setup-pdm@v4.1 with: python-version: '3.x' - name: Get tag @@ -67,14 +69,14 @@ jobs: tags: ${{ steps.get_tag.outputs.version }} - name: Create release id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: softprops/action-gh-release@v2.1.0 with: tag_name: ${{ steps.get_tag.outputs.version }} - release_name: Release ${{ steps.get_tag.outputs.version }} + name: Release ${{ steps.get_tag.outputs.version }} body_path: ./release_notes.md draft: false prerelease: false + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Delete release_notes file run: rm release_notes.md