File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Publish
2+
3+ on :
4+ release :
5+ types : [published]
6+
7+ jobs :
8+ release :
9+ name : Release
10+ strategy :
11+ matrix :
12+ kind : ['windowsx64', 'windowsx86', 'windowsarm64']
13+ include :
14+ - kind : windowsx64
15+ os : windows-latest
16+ target : win-x64
17+ - kind : windowsx86
18+ os : windows-latest
19+ target : win-x86
20+ - kind : windowsarm64
21+ os : windows-latest
22+ target : win-arm64
23+ runs-on : ${{ matrix.os }}
24+ steps :
25+ - uses : actions/checkout@v6
26+ - name : Setup dotnet
27+ uses : actions/setup-dotnet@v5
28+ with :
29+ dotnet-version : 10.x
30+ cache : true
31+ cache-dependency-path : " **/packages.lock.json"
32+
33+ - name : Build
34+ shell : bash
35+ run : |
36+ tag=$(git describe --tags --abbrev=0)
37+ release_name="RunAsPleb-$tag-${{ matrix.target }}"
38+
39+ # Build everything
40+ dotnet publish RunAsPleb/RunAsPleb.csproj --runtime "${{ matrix.target }}" -c Release -o "$release_name"
41+
42+ # Pack files
43+ 7z a -tzip "${release_name}.zip" "./${release_name}/*"
44+
45+ # Delete output directory
46+ rm -r "$release_name"
47+ - name : Publish
48+ uses : softprops/action-gh-release@v3
49+ with :
50+ files : " RunAsPleb*.zip"
You can’t perform that action at this time.
0 commit comments