mirror of
https://github.com/ChrisTitusTech/winutil
synced 2026-04-05 22:28:31 +00:00
fix release drafter
This commit is contained in:
21
.github/workflows/pre-release.yaml
vendored
21
.github/workflows/pre-release.yaml
vendored
@@ -11,6 +11,8 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build-runspace:
|
build-runspace:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
outputs:
|
||||||
|
version: ${{ steps.extract_version.outputs.version }}
|
||||||
env:
|
env:
|
||||||
CERTIFICATE_BASE64: ${{ secrets.CERTIFICATE_BASE64 }}
|
CERTIFICATE_BASE64: ${{ secrets.CERTIFICATE_BASE64 }}
|
||||||
steps:
|
steps:
|
||||||
@@ -57,6 +59,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
$version = (Get-Date -Format "yy.MM.dd")
|
$version = (Get-Date -Format "yy.MM.dd")
|
||||||
echo "VERSION=$version" >> $env:GITHUB_ENV
|
echo "VERSION=$version" >> $env:GITHUB_ENV
|
||||||
|
echo "version=$version" >> $env:GITHUB_OUTPUT
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
|
||||||
- name: Create Tag
|
- name: Create Tag
|
||||||
@@ -79,6 +82,24 @@ jobs:
|
|||||||
}
|
}
|
||||||
shell: pwsh
|
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
|
- name: Generate Release Notes
|
||||||
id: generate_notes
|
id: generate_notes
|
||||||
uses: release-drafter/release-drafter@v7
|
uses: release-drafter/release-drafter@v7
|
||||||
|
|||||||
Reference in New Issue
Block a user