Skip to content

Merge pull request #80 from WeihanLi/dev #33

Merge pull request #80 from WeihanLi/dev

Merge pull request #80 from WeihanLi/dev #33

Workflow file for this run

name: release
on:
push:
branches: [ main ]
jobs:
release:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
7.0.x
8.0.x
- name: dotnet info
run: dotnet --info
- name: Create Github release
shell: pwsh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
./build.ps1 --stable=true
$VERSION = Get-ChildItem -Path artifacts/packages/*.nupkg -Name | Select-String -Pattern '\d+.\d+.\d+' | foreach {$_.Matches.Value}
gh release create --generate-notes $VERSION