Skip to content

Commit a73d878

Browse files
authored
Create release.yaml
1 parent 0112be6 commit a73d878

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/release.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Release
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches: [ master ]
6+
jobs:
7+
build:
8+
name: Release
9+
runs-on: windows-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Setup .NET SDK
13+
uses: actions/setup-dotnet@v4
14+
with:
15+
dotnet-version: |
16+
6.0.x
17+
7.0.x
18+
8.0.x
19+
9.0.x
20+
- name: Build
21+
shell: pwsh
22+
run: .\build.ps1 --stable=true
23+
- name: Get Release Version
24+
shell: pwsh
25+
run: dotnet-exec https://github.com/OpenReservation/scripts/blob/main/build/export-gh-release-version.cs
26+
- name: create release
27+
shell: pwsh
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
run: |
31+
gh release create ${{ env.ReleaseVersion }} --generate-notes --target master (Get-Item ./artifacts/packages/*.nupkg)

0 commit comments

Comments
 (0)