Skip to content

Commit 1889092

Browse files
committed
Actions to create releases for webapp
1 parent 550002b commit 1889092

File tree

1 file changed

+61
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)