2222 steps :
2323 - uses : actions/checkout@v4
2424
25+ - name : Check Release Exists
26+ env :
27+ GH_TOKEN : ${{ github.token }}
28+ run : |
29+ VERSION=$(jq -r '.version' src-tauri/tauri.conf.json)
30+ echo "Releasing version: $VERSION"
31+ if gh release view "v$VERSION" > /dev/null 2>&1; then
32+ echo "Release $VERSION already exists!"
33+ exit 1
34+ fi
35+
2536 - name : Setup NodeJS
2637 uses : actions/setup-node@v4
2738 with :
3647 - name : Install Node Modules
3748 run : npm install
3849
39- - name : Check Release Exists
40- env :
41- GH_TOKEN : ${{ github.token }}
42- run : |
43- VERSION=$(jq -r '.version' src-tauri/tauri.conf.json)
44- echo "Releasing version: $VERSION"
45- if gh release view "v$VERSION" > /dev/null 2>&1; then
46- echo "Release $VERSION already exists!"
47- exit 1
48- fi
49-
5050 - name : Build Huly Browser
5151 uses : tauri-apps/tauri-action@v0
5252 id : tauri-build
8787 steps :
8888 - uses : actions/checkout@v4
8989
90- - name : Setup NodeJS
91- uses : actions/setup-node@v4
92- with :
93- node-version : lts/*
94-
95- - name : Install Node Modules
96- run : npm install
97-
9890 - name : Check Release Exists
9991 env :
10092 GH_TOKEN : ${{ github.token }}
@@ -106,6 +98,19 @@ jobs:
10698 exit 1
10799 fi
108100
101+ - name : Setup NodeJS
102+ uses : actions/setup-node@v4
103+ with :
104+ node-version : lts/*
105+
106+ - name : Install Node Modules
107+ run : npm install
108+
109+ - name : Install Rust Targets
110+ run : |
111+ rustup target add aarch64-apple-darwin
112+ rustup target add x86_64-apple-darwin
113+
109114 - name : Import Apple Developer Certificate
110115 env :
111116 APPLE_CERTIFICATE : ${{ secrets.APPLE_CERTIFICATE }}
0 commit comments