File tree Expand file tree Collapse file tree 5 files changed +63
-10
lines changed Expand file tree Collapse file tree 5 files changed +63
-10
lines changed Original file line number Diff line number Diff line change 1+ name : Build Capacitor Release
2+
3+ on : push
4+
5+ jobs :
6+ build :
7+ strategy :
8+ matrix :
9+ target : [android]
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - name : Checkout
14+ uses : actions/checkout@v4
15+
16+ - name : Get Keystore
17+ run : |
18+ echo ${{ secrets.ANDROID_KEYSTORE }} | base64 --decode > keystore.jks
19+
20+ - name : Setup Node.js
21+ uses : actions/setup-node@v4
22+ with :
23+ node-version : 22.x
24+
25+ - name : Install dependencies
26+ run : npm install
27+
28+ - name : Change Android Project Permission
29+ run : chmod +x android/gradlew
30+
31+ - name : Build Capacitor App
32+ run : |
33+ npm run android-build \
34+ --keystorepath keystore.jks \
35+ --keystorepass ${{ secrets.ANDROID_KEYSTORE_PASS }} \
36+ --keystorealias ${{ secrets.ANDROID_KEYSTORE_ALIAS }} \
37+ --keystorealiaspass ${{ secrets.ANDROID_KEYSTORE_ALIAS_PASS }}
38+ --androidreleasetype APK
39+
40+ # - name: Create Release Build
41+ # uses: softprops/action-gh-release@v2
42+ # with:
43+ # files: |
44+ # android.zip
45+ # ios.zip
46+ # env:
47+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 2424 - name : Install dependencies
2525 run : npm install
2626
27- - name : Build Web App
28- run : |
29- npm run build
30-
3127 - name : Build Electron App
3228 run : |
3329 npm run desktop-build
Original file line number Diff line number Diff line change @@ -43,3 +43,7 @@ certificates
4343
4444# capacitor
4545resources /android /** /*
46+
47+ .keystore
48+ # act cli secrets for testing github actions locally
49+ * .secrets
Original file line number Diff line number Diff line change 1- import type { CapacitorConfig } from ' @capacitor/cli' ;
1+ import type { CapacitorConfig } from " @capacitor/cli" ;
22
33const config : CapacitorConfig = {
4- appId : 'com.chisel.app' ,
5- appName : 'Chisel Editor' ,
6- webDir : 'out-next'
4+ appId : "com.chisel.app" ,
5+ appName : "Chisel Editor" ,
6+ webDir : "out-next" ,
7+ android : {
8+ buildOptions : {
9+ signingType : "apksigner" ,
10+ } ,
11+ } ,
712} ;
813
914export default config ;
Original file line number Diff line number Diff line change 1010 "start" : " next start" ,
1111 "lint" : " next lint" ,
1212 "android" : " next build && npx cap sync && npx cap run android" ,
13+ "android-build" :" next build && npx cap sync && npx cap build android" ,
1314 "desktop-dev" : " electron ." ,
14- "desktop-build" : " electron-forge package"
15+ "desktop-build" : " next build && electron-forge package"
1516 },
1617 "dependencies" : {
1718 "@capacitor/android" : " ^6.2.0" ,
5960 "tailwindcss" : " ^3.4.1" ,
6061 "typescript" : " ^5"
6162 }
62- }
63+ }
You can’t perform that action at this time.
0 commit comments