Skip to content

Commit 3bbf462

Browse files
committed
Update release workflows
1 parent 123c11e commit 3bbf462

File tree

2 files changed

+48
-11
lines changed

2 files changed

+48
-11
lines changed

.github/workflows/release-desktop.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
tags:
66
- "v*.*.*"
77

8+
permissions:
9+
contents: write
10+
811
jobs:
912
release:
1013
strategy:
@@ -21,14 +24,28 @@ jobs:
2124
with:
2225
node-version: 20
2326

27+
- name: Install shared-utils dependencies
28+
run: npm install --workspace=npm-packages/shared-utils
29+
30+
- name: Build shared-utils
31+
run: npm run shared-utils-build
32+
33+
- name: Install capacitor-plugin dependencies
34+
run: npm install --workspace=capacitor-plugin
35+
36+
- name: Build capacitor-plugin
37+
run: npm run capacitor-plugin-build
38+
2439
- name: Install web dependencies
2540
run: npm install --workspace=web
2641

2742
- name: Install desktop dependencies
28-
run: npm install --workspace=desktop
43+
run: npm install
44+
working-directory: desktop
2945

3046
- name: Rebuild native modules
31-
run: npm run rebuild-native --workspace=desktop
47+
run: npm run rebuild-native
48+
working-directory: desktop
3249

3350
- name: Build Electron App
3451
run: |

.github/workflows/release-mobile.yml

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
tags:
99
- "v*.*.*"
1010

11+
permissions:
12+
contents: write
13+
1114
jobs:
1215
release:
1316
strategy:
@@ -19,10 +22,10 @@ jobs:
1922
- name: Checkout
2023
uses: actions/checkout@v4
2124

22-
- name: Set up JDK 17
25+
- name: Set up JDK 21
2326
uses: actions/setup-java@v3
2427
with:
25-
java-version: "17"
28+
java-version: "21"
2629
distribution: "temurin"
2730

2831
- name: Setup Android SDK
@@ -35,28 +38,45 @@ jobs:
3538
3639
- name: Get Keystore
3740
run: |
38-
mkdir android/.keystore
39-
echo ${{ secrets.ANDROID_KEYSTORE }} | base64 --decode > android/.keystore/keystore.jks
41+
mkdir ~/.keystore
42+
echo ${{ secrets.ANDROID_KEYSTORE }} | base64 --decode > ~/.keystore/keystore.jks
4043
4144
- name: Setup Node.js
4245
uses: actions/setup-node@v4
4346
with:
4447
node-version: 20
4548

46-
- name: Install dependencies
47-
run: npm install
49+
- name: Install shared-utils dependencies
50+
run: npm install --workspace=npm-packages/shared-utils
51+
52+
- name: Build shared-utils
53+
run: npm run shared-utils-build
54+
55+
- name: Install capacitor-plugin dependencies
56+
run: npm install --workspace=capacitor-plugin
57+
58+
- name: Build capacitor-plugin
59+
run: npm run capacitor-plugin-build
60+
61+
- name: Install web dependencies
62+
run: npm install --workspace=web
4863

4964
- name: Build Web App
50-
run: npm run build
65+
run: npm run web-build
66+
67+
- name: Install mobile dependencies
68+
run: npm install --workspace=mobile
5169

5270
- name: Change Android Project Permission
53-
run: chmod +x android/gradlew
71+
run: chmod +x mobile/android/gradlew
5472

5573
- name: Sync Capacitor App
5674
run: npx cap sync
75+
working-directory: mobile
5776

5877
- name: Build Capacitor App
59-
run: npx cap build android --keystorepath .keystore/keystore.jks --keystorepass ${{ secrets.ANDROID_KEYSTORE_PASS }} --androidreleasetype APK
78+
run: npx cap build android --keystorepath ~/.keystore/keystore.jks --keystorepass ${{ secrets.ANDROID_KEYSTORE_PASS }} --androidreleasetype APK
79+
working-directory: mobile
6080

6181
- name: Move APK
6282
run: mv android/app/build/outputs/apk/release/app-release-signed.apk pulse-editor.apk

0 commit comments

Comments
 (0)