File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed
Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Publish osx-arm64
2+
3+ on :
4+ workflow_dispatch : # This allows manual triggering from the Actions tab.
5+
6+ jobs :
7+ build :
8+ runs-on : macos-latest
9+ steps :
10+ - uses : actions/checkout@v4
11+
12+ - name : Setup Node.js
13+ uses : actions/setup-node@v4
14+ with :
15+ node-version : ' 18.x'
16+
17+ - name : Setup .NET Core
18+ uses : actions/setup-dotnet@v4
19+ with :
20+ dotnet-version : ' 8.0.x'
21+
22+ - name : Restore dependencies
23+ run : dotnet restore LegendsViewer.sln
24+
25+ - name : Build Backend and Frontend (Vue 3)
26+ run : dotnet build LegendsViewer.sln --configuration Release --no-restore
27+
28+ - name : Publish Backend
29+ run : dotnet publish LegendsViewer.Backend/LegendsViewer.Backend.csproj -c Release -r osx-arm64 --self-contained true -p:PublishSingleFile=true -p:DebugType=none -o ./publish
30+
31+ - name : Publish Frontend
32+ run : dotnet publish LegendsViewer.Frontend/LegendsViewer.Frontend.csproj -c Release -r osx-arm64 -p:DebugType=none -o ./publish
33+
34+ - name : Sign and Create ZIP Archive
35+ env :
36+ MACOS_DEVELOPER_ID : ${{ secrets.MACOS_DEVELOPER_ID }}
37+ MACOS_APPSTORE_APP_PASSWORD : ${{ secrets.MACOS_APPSTORE_APP_PASSWORD }}
38+ MACOS_CERTIFICATE_P12 : ${{ secrets.MACOS_CERTIFICATE_P12 }}
39+ run : .github/scripts/signmacos.sh
40+
41+ - name : Upload artifact
42+ uses : actions/upload-artifact@v4
43+ with :
44+ name : LegendsViewer-osx-arm64
45+ path : ./release/LegendsViewer*.dmg
You can’t perform that action at this time.
0 commit comments