Skip to content

Commit 2827899

Browse files
authored
Publish for win-x64 and linux-x64 as well along with linux-arm64
1 parent 8a53f97 commit 2827899

File tree

1 file changed

+23
-4
lines changed

1 file changed

+23
-4
lines changed

.github/workflows/publish-linux-arm64.yaml

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,31 @@ jobs:
1414
uses: actions/setup-dotnet@v4
1515
with:
1616
dotnet-version: '8.0.x'
17-
- name: Build Shorty
18-
run: cd src/Shorty && dotnet publish -r linux-arm64 /p:PublishSingleFile=true /p:SelfContained=true -o output
19-
- name: upload output
17+
- name: Build Shorty for linux-arm64
18+
run: cd src/Shorty && dotnet publish -r linux-arm64 /p:PublishSingleFile=true /p:SelfContained=true -o output-arm64
19+
- name: Upload output-arm64 for linux-arm64
2020
uses: actions/upload-artifact@v4
2121
with:
2222
name: shorty-latest-arm64-standalone
23-
path: src/Shorty/output
23+
path: src/Shorty/output-arm64
2424
if-no-files-found: error
2525
overwrite: true
26+
- name: Build Shorty for linux-x64
27+
run: cd src/Shorty && dotnet publish -r linux-x64 /p:PublishSingleFile=true /p:SelfContained=true -o output-x64
28+
- name: Upload output for linux-x64
29+
uses: actions/upload-artifact@v4
30+
with:
31+
name: shorty-latest-x64-standalone
32+
path: src/Shorty/output-x64
33+
if-no-files-found: error
34+
overwrite: true
35+
- name: Build Shorty for win-x64
36+
run: cd src/Shorty && dotnet publish -r win-x64 /p:PublishSingleFile=true /p:SelfContained=true -o output-win-x64
37+
- name: Upload output for win-x64
38+
uses: actions/upload-artifact@v4
39+
with:
40+
name: shorty-latest-win-x64-standalone
41+
path: src/Shorty/output-win-x64
42+
if-no-files-found: error
43+
overwrite: true
44+

0 commit comments

Comments
 (0)