File tree 1 file changed +36
-0
lines changed
1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - " v*"
7
+
8
+ jobs :
9
+ release :
10
+ runs-on : ubuntu-20.04
11
+
12
+ steps :
13
+ - uses : actions/checkout@v2
14
+
15
+ - name : Setup dotnet 5.0
16
+ uses : actions/setup-dotnet@v1
17
+ with :
18
+ dotnet-version : " 5.0.x"
19
+
20
+ - run : dotnet publish ./SamFirm/SamFirm.csproj -c Release -p:PublishProfile=./SamFirm/Properties/PublishProfiles/linux-x64.pubxml
21
+ - run : dotnet publish ./SamFirm/SamFirm.csproj -c Release -p:PublishProfile=./SamFirm/Properties/PublishProfiles/win-x64.pubxml
22
+ - run : dotnet publish ./SamFirm/SamFirm.csproj -c Release -p:PublishProfile=./SamFirm/Properties/PublishProfiles/win-x64-single.pubxml
23
+
24
+ - run : mv ./SamFirm/dist/linux-x64/SamFirm ./linux-x64
25
+ - run : mv ./SamFirm/dist/win-x64/SamFirm.exe ./win-x64.exe
26
+ - run : mv ./SamFirm/dist/win-x64-single/SamFirm.exe ./win-x64-single.exe
27
+
28
+ - name : Upload release assets
29
+ uses : softprops/action-gh-release@v1
30
+ env :
31
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
32
+ with :
33
+ files : |
34
+ linux-x64
35
+ win-x64.exe
36
+ win-x64-single.exe
You can’t perform that action at this time.
0 commit comments