From e4dd305084b24f0d0ae104e03066ba3918ae5f16 Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Thu, 2 Apr 2026 15:49:39 -0500 Subject: [PATCH] fix release drafter --- .github/workflows/pre-release.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/pre-release.yaml b/.github/workflows/pre-release.yaml index 348aa8e2..8a432f14 100644 --- a/.github/workflows/pre-release.yaml +++ b/.github/workflows/pre-release.yaml @@ -11,6 +11,8 @@ on: jobs: build-runspace: runs-on: windows-latest + outputs: + version: ${{ steps.extract_version.outputs.version }} env: CERTIFICATE_BASE64: ${{ secrets.CERTIFICATE_BASE64 }} steps: @@ -57,6 +59,7 @@ jobs: run: | $version = (Get-Date -Format "yy.MM.dd") echo "VERSION=$version" >> $env:GITHUB_ENV + echo "version=$version" >> $env:GITHUB_OUTPUT shell: pwsh - name: Create Tag @@ -79,6 +82,24 @@ jobs: } shell: pwsh + - name: Upload compiled script + uses: actions/upload-artifact@v4 + with: + name: winutil-ps1 + path: ./winutil.ps1 + + release: + needs: build-runspace + runs-on: ubuntu-latest + steps: + - name: Download compiled script + uses: actions/download-artifact@v4 + with: + name: winutil-ps1 + + - name: Set version from build job + run: echo "VERSION=${{ needs.build-runspace.outputs.version }}" >> $GITHUB_ENV + - name: Generate Release Notes id: generate_notes uses: release-drafter/release-drafter@v7