File tree Expand file tree Collapse file tree 2 files changed +56
-4
lines changed Expand file tree Collapse file tree 2 files changed +56
-4
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change @@ -14,12 +14,31 @@ jobs:
14
14
uses : actions/setup-dotnet@v4
15
15
with :
16
16
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
20
20
uses : actions/upload-artifact@v4
21
21
with :
22
22
name : shorty-latest-arm64-standalone
23
- path : src/Shorty/output
23
+ path : src/Shorty/output-arm64
24
24
if-no-files-found : error
25
25
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
+
You can’t perform that action at this time.
0 commit comments