Skip to content

Commit 7d68cc0

Browse files
authored
Merge pull request #95 from jetelain/release-webapp
Actions to create releases for webapp
2 parents 550002b + 44b5d69 commit 7d68cc0

File tree

2 files changed

+62
-14
lines changed

2 files changed

+62
-14
lines changed

.github/workflows/dotnet.yml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: .NET Linux
1+
name: .NET Build
22

33
on:
44
push:
@@ -22,17 +22,6 @@ jobs:
2222
- name: Publish Linux/ReleaseCloud
2323
run: dotnet publish --no-self-contained -f net8.0 -r linux-x64 -c ReleaseCloud cTabIRL/cTabWebApp/cTabWebApp.csproj -o OutputLinux
2424

25-
- name: Publish Windows/
25+
- name: Publish Windows/ReleaseSolo
2626
run: dotnet publish --no-self-contained -f net8.0 -r win-x64 -c Release cTabIRL/cTabWebApp/cTabWebApp.csproj -o OutputWindows
27-
28-
- name: Upload OutputLinux
29-
uses: actions/upload-artifact@v4
30-
with:
31-
name: Linux Server
32-
path: OutputLinux
33-
34-
- name: Upload OutputWindows
35-
uses: actions/upload-artifact@v4
36-
with:
37-
name: Windows Server
38-
path: OutputWindows
27+
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: .NET Release
2+
3+
on:
4+
release:
5+
types: [ "published" ]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
with:
13+
submodules: recursive
14+
15+
- name: Setup .NET
16+
uses: actions/setup-dotnet@v3
17+
with:
18+
dotnet-version: 8.0.x
19+
20+
- name: Publish Linux x64/ReleaseCloud
21+
run: dotnet publish --no-self-contained -f net8.0 -r linux-x64 -c ReleaseCloud cTabIRL/cTabWebApp/cTabWebApp.csproj -o ctab-webapp-linux-x64
22+
23+
- name: Zip Linux x64/ReleaseCloud
24+
run: zip -r ctab-webapp-linux-x64.zip ctab-webapp-linux-x64
25+
26+
- name: Publish Linux arm64/ReleaseCloud
27+
run: dotnet publish --no-self-contained -f net8.0 -r linux-arm64 -c ReleaseCloud cTabIRL/cTabWebApp/cTabWebApp.csproj -o ctab-webapp-linux-arm64
28+
29+
- name: Zip Linux arm64/ReleaseCloud
30+
run: zip -r ctab-webapp-linux-arm64.zip ctab-webapp-linux-arm64
31+
32+
- name: Publish Windows/ReleaseSolo
33+
run: dotnet publish --no-self-contained -f net8.0 -r win-x64 -c Release cTabIRL/cTabWebApp/cTabWebApp.csproj -o ctab-webapp-single-user-win-x64
34+
35+
- name: Zip Windows/ReleaseSolo
36+
run: zip -r ctab-webapp-single-user-win-x64.zip ctab-webapp-single-user-win-x64
37+
38+
- uses: Shopify/upload-to-release@master
39+
with:
40+
name: ctab-webapp-linux-x64.zip
41+
path: "ctab-webapp-linux-x64.zip"
42+
repo-token: ${{ secrets.GITHUB_TOKEN }}
43+
content-type: application/zip
44+
45+
- uses: Shopify/upload-to-release@master
46+
with:
47+
name: ctab-webapp-linux-arm64.zip
48+
path: "ctab-webapp-linux-arm64.zip"
49+
repo-token: ${{ secrets.GITHUB_TOKEN }}
50+
content-type: application/zip
51+
52+
- uses: Shopify/upload-to-release@master
53+
with:
54+
name: ctab-webapp-single-user-win-x64.zip
55+
path: "ctab-webapp-single-user-win-x64.zip"
56+
repo-token: ${{ secrets.GITHUB_TOKEN }}
57+
content-type: application/zip
58+
59+

0 commit comments

Comments
 (0)