Skip to content

Commit d404a23

Browse files
committed
Create release.yml
1 parent 633c2f4 commit d404a23

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/release.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Final Release
2+
3+
jobs:
4+
build:
5+
runs-on: windows-latest
6+
defaults:
7+
run:
8+
working-directory: SyncPlayWPF
9+
steps:
10+
- uses: actions/checkout@v2
11+
12+
- name: Setup MSBuild
13+
uses: microsoft/setup-msbuild@v1
14+
15+
- name: Setup NuGet
16+
uses: NuGet/[email protected]
17+
18+
- name: Restore Packages
19+
run: nuget restore SyncPlayWPF.sln
20+
21+
- name: Build Solution
22+
run: |
23+
msbuild.exe SyncPlayWPF.sln /p:platform="Any CPU" /p:configuration="Release"
24+
25+
- name: Upload Package
26+
uses: actions/upload-artifact@v2
27+
with:
28+
name: BuildArtifact
29+
path: D:\a\SyncPlay.NET\SyncPlay.NET\SyncPlayWPF\SyncPlayWPF\bin\Release\
30+
31+
- name: Release
32+
uses: actions/create-release@v1
33+
id: create_release
34+
with:
35+
draft: true
36+
prerelease: false
37+
tag_name: ${{ github.ref }}
38+
env:
39+
GITHUB_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)