Skip to content

Merge pull request #77 from WeihanLi/dev #30

Merge pull request #77 from WeihanLi/dev

Merge pull request #77 from WeihanLi/dev #30

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/*.nupkg -Name | Select-String -Pattern '\d+.\d+.\d+' | foreach {$_.Matches.Value}
gh release create --generate-notes $VERSION