Skip to content

Commit 36bacdd

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents cbbd6cd + bbe9ff7 commit 36bacdd

File tree

2 files changed

+56
-4
lines changed

2 files changed

+56
-4
lines changed

.github/workflows/make-release.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
run-name: Create a release for windows and linux
2+
on:
3+
push:
4+
tags:
5+
- 'v*'
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
- name: Setup Dotnet
14+
uses: actions/setup-dotnet@v4
15+
with:
16+
dotnet-version: '8.0.x'
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: Build Shorty for linux-x64
20+
run: cd src/Shorty && dotnet publish -r linux-x64 /p:PublishSingleFile=true /p:SelfContained=true -o output-x64
21+
- name: Build Shorty for win-x64
22+
run: cd src/Shorty && dotnet publish -r win-x64 /p:PublishSingleFile=true /p:SelfContained=true -o output-win-x64
23+
- name: Create a Release
24+
uses: softprops/action-gh-release@v2
25+
with:
26+
name: Automated Release - ${{ github.ref }}
27+
prerelease: true
28+
tag_name: ${{ github.ref }}
29+
token: ${{ secrets.GITHUB_TOKEN }}
30+
files: |
31+
src/Shorty/output-win-x64
32+
src/Shorty/output-x64
33+
src/Shorty/output-arm64

.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)