diff --git a/.github/workflows/pre-release.yaml b/.github/workflows/pre-release.yaml index a1ac61647d..c9b9625f81 100644 --- a/.github/workflows/pre-release.yaml +++ b/.github/workflows/pre-release.yaml @@ -21,7 +21,7 @@ jobs: Get-Content ./winutil.ps1 -TotalCount 30 | ForEach-Object { if ($_ -match 'Version\s*:\s*(\d{2}\.\d{2}\.\d{2})') { $version = $matches[1] - echo "version=$version" >> $env:VERSION + echo "version=$version" >> $env:GITHUB_ENV break } } diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 367a66fdc5..c62301c550 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -44,12 +44,13 @@ jobs: id: create_release uses: softprops/action-gh-release@v2 with: - tag_name: ${{ env:VERSION }} - name: Release ${{ env:VERSION }} - body: "![GitHub Downloads (specific asset, specific tag)](https://img.shields.io/github/downloads/ChrisTitusTech/winutil/${{ env:VERSION }}/winutil.ps1)" + tag_name: ${{ env.VERSION }} + name: Release ${{ env.VERSION }} + body: "![GitHub Downloads (specific asset, specific tag)](https://img.shields.io/github/downloads/ChrisTitusTech/winutil/${{ env.VERSION }}/winutil.ps1)" append_body: true files: ./winutil.ps1 prerelease: false + generate_release_notes: true make_latest: "true" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}