-
Notifications
You must be signed in to change notification settings - Fork 14
112 lines (90 loc) · 2.67 KB
/
release_mac.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
name: Release Mac
on:
workflow_dispatch:
env:
DOTNET_VERSION: 8.0.x
NODE_VERSION: 20.x
jobs:
build:
name: Release/
# if: startsWith(github.ref, 'refs/heads/release/')
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [macos-latest]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{env.DOTNET_VERSION}}
- name: Install dependencies
run: dotnet restore neo3-gui/neo3-gui/neo3-gui.csproj
- name: Use Node.js ${{env.NODE_VERSION}}
uses: actions/setup-node@v4
with:
node-version: ${{env.NODE_VERSION}}
- name: build mac
working-directory: neo3-gui/neo3-gui
env:
CI: false
run: dotnet publish -r osx-x64 --sc -c Release -o ClientApp/build-neo-node
- name: build mac electron
working-directory: neo3-gui/neo3-gui/ClientApp
env:
CI: false
run: |
npm install
npx electron-builder --mac --x64 --arm64 --publish always
- name: Upload Mac Release Files
if: matrix.os == 'macos-latest'
uses: actions/upload-artifact@v4
with:
name: release-mac
path: neo3-gui/neo3-gui/ClientApp/build-electron/*.dmg
# - name: Get Cache Files (osx-x64)
# uses: actions/cache@v3
# with:
# path: /tmp/dist/*
# key: osx-x64
# - name: Get Cache Files (osx-arm64)
# uses: actions/cache@v3
# with:
# path: /tmp/dist/*
# key: osx-arm64
# - name: Get Cache Files (linux-x64)
# uses: actions/cache@v3
# with:
# path: /tmp/dist/*
# key: linux-x64
# - name: Get Cache Files (linux-arm64)
# uses: actions/cache@v3
# with:
# path: /tmp/dist/*
# key: linux-arm64
# - name: Get Cache Files (linux-musl-arm64)
# uses: actions/cache@v3
# with:
# path: /tmp/dist/*
# key: linux-musl-arm64
# - name: Get Cache Files (win-x64)
# uses: actions/cache@v3
# with:
# path: /tmp/dist/*
# key: win-x64
# - name: Get Cache Files (win-arm64)
# uses: actions/cache@v3
# with:
# path: /tmp/dist/*
# key: win-arm64
# - name: Create Release
# uses: marvinpinto/action-automatic-releases@latest
# with:
# repo_token: "${{ secrets.GITHUB_TOKEN }}"
# prerelease: ${{ steps.nbgv.outputs.PrereleaseVersion != '' }}
# title: ${{ steps.nbgv.outputs.NuGetPackageVersion }}
# automatic_release_tag: ${{ steps.nbgv.outputs.NuGetPackageVersion }}
# files: |
# /tmp/dist/*