diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 8d9874b..dcfc5e1 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -110,10 +110,11 @@ jobs: git push origin main --tags - name: Create GitHub Release + uses: softprops/action-gh-release@v2 + with: + tag_name: "v${{ inputs.version }}" + files: ${{ env.TARBALL }} + fail_on_unmatched_files: true + generate_release_notes: true env: - GH_TOKEN: ${{ github.token }} - run: | - VERSION="${{ inputs.version }}" - gh release create "v${VERSION}" "${{ env.TARBALL }}" \ - --title "v${VERSION}" \ - --generate-notes + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}