99jobs :
1010 build :
1111 runs-on : ubuntu-latest
12-
12+
1313 steps :
1414 - name : Checkout repository
1515 uses : actions/checkout@v2
16-
16+
1717 - name : Setup .NET
1818 uses : actions/setup-dotnet@v1
1919 with :
@@ -24,10 +24,19 @@ jobs:
2424
2525 - name : Build win-x64
2626 run : dotnet publish SonarrAutoImport.sln -c Release --runtime win-x64 --self-contained -o SonarrAutoImport-win-x64 /p:PublishSingleFile=true /p:PublishTrimmed=false /p:AssemblyVersion=1.0.${{ github.run_number }}
27-
27+
2828 - name : Build linux-x64
2929 run : dotnet publish SonarrAutoImport.sln -c Release --runtime linux-x64 --self-contained -o SonarrAutoImport-linux-x64 /p:PublishSingleFile=true /p:PublishTrimmed=false /p:AssemblyVersion=1.0.${{ github.run_number }}
30-
30+
31+ - name : Build linux-x64-musl
32+ run : dotnet publish SonarrAutoImport.sln -c Release --runtime linux-musl-x64 --self-contained -o SonarrAutoImport-linux-musl-x64 /p:PublishSingleFile=true /p:PublishTrimmed=false /p:AssemblyVersion=1.0.${{ github.run_number }}
33+
34+ - name : Build linux-arm64
35+ run : dotnet publish SonarrAutoImport.sln -c Release --runtime linux-arm64 --self-contained -o SonarrAutoImport-linux-arm64 /p:PublishSingleFile=true /p:PublishTrimmed=false /p:AssemblyVersion=1.0.${{ github.run_number }}
36+
37+ - name : Build linux-arm64-musl
38+ run : dotnet publish SonarrAutoImport.sln -c Release --runtime linux-musl-arm64 --self-contained -o SonarrAutoImport-linux-musl-arm64 /p:PublishSingleFile=true /p:PublishTrimmed=false /p:AssemblyVersion=1.0.${{ github.run_number }}
39+
3140 - name : Build osx-x64
3241 run : dotnet publish SonarrAutoImport.sln -c Release --runtime osx-x64 --self-contained -o SonarrAutoImport-osx-x64 /p:PublishSingleFile=true /p:PublishTrimmed=false /p:AssemblyVersion=1.0.${{ github.run_number }}
3342
@@ -36,11 +45,17 @@ jobs:
3645 run : |
3746 7z a -tzip "./artifacts/SonarrAutoImport-win-x64.zip" "./SonarrAutoImport-win-x64/*"
3847 tar czvf "./artifacts/SonarrAutoImport-linux-x64.tar.gz" "SonarrAutoImport-linux-x64"
48+ tar czvf "./artifacts/SonarrAutoImport-linux-musl-x64.tar.gz" "SonarrAutoImport-linux-musl-x64"
49+ tar czvf "./artifacts/SonarrAutoImport-linux-arm64.tar.gz" "SonarrAutoImport-linux-arm64"
50+ tar czvf "./artifacts/SonarrAutoImport-linux-musl-arm64.tar.gz" "SonarrAutoImport-linux-musl-armx64"
3951 tar czvf "./artifacts/SonarrAutoImport-osx-x64.tar.gz" "SonarrAutoImport-osx-x64"
4052 rm -r "SonarrAutoImport-win-x64"
4153 rm -r "SonarrAutoImport-linux-x64"
54+ rm -r "SonarrAutoImport-linux-musl-x64"
55+ rm -r "SonarrAutoImport-linux-arm64"
56+ rm -r "SonarrAutoImport-linux-musl-arm64"
4257 rm -r "SonarrAutoImport-osx-x64"
43-
58+
4459 - name : Create the Release
4560 id : create_release
4661 if : ${{ github.event_name == 'push' }}
5166 tag_name : 1.0.${{ github.run_number }}
5267 release_name : Release 1.0.${{ github.run_number }}
5368 draft : false
54-
69+
5570 - name : Upload SonarrAutoImport-win-x64.zip
5671 if : ${{ github.event_name == 'push' }}
5772 uses : actions/upload-release-asset@v1.0.2
7489 asset_name : SonarrAutoImport-linux-x64.tar.gz
7590 asset_content_type : application/gzip
7691
92+ - name : Upload SonarrAutoImport-linux-musl-x64.zip
93+ if : ${{ github.event_name == 'push' }}
94+ uses : actions/upload-release-asset@v1.0.2
95+ env :
96+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
97+ with :
98+ upload_url : ${{ steps.create_release.outputs.upload_url }}
99+ asset_path : ./artifacts/SonarrAutoImport-linux-musl-x64.tar.gz
100+ asset_name : SonarrAutoImport-linux-musl-x64.tar.gz
101+ asset_content_type : application/gzip
102+
103+ - name : Upload SonarrAutoImport-linux-arm64.zip
104+ if : ${{ github.event_name == 'push' }}
105+ uses : actions/upload-release-asset@v1.0.2
106+ env :
107+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
108+ with :
109+ upload_url : ${{ steps.create_release.outputs.upload_url }}
110+ asset_path : ./artifacts/SonarrAutoImport-linux-arm64.tar.gz
111+ asset_name : SonarrAutoImport-linux-arm64.tar.gz
112+ asset_content_type : application/gzip
113+
114+ - name : Upload SonarrAutoImport-linux-musl-arm64.zip
115+ if : ${{ github.event_name == 'push' }}
116+ uses : actions/upload-release-asset@v1.0.2
117+ env :
118+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
119+ with :
120+ upload_url : ${{ steps.create_release.outputs.upload_url }}
121+ asset_path : ./artifacts/SonarrAutoImport-linux-musl-arm64.tar.gz
122+ asset_name : SonarrAutoImport-linux-musl-arm64.tar.gz
123+ asset_content_type : application/gzip
124+
77125 - name : Upload SonarrAutoImport-osx-x64.zip
78126 if : ${{ github.event_name == 'push' }}
79127 uses : actions/upload-release-asset@v1.0.2
0 commit comments