File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Build and Release GeeksCode
2-
32on :
43 push :
5- tags :
6- - ' v* ' # Triggers on tags starting with 'v', e.g., v1.0.1
7-
4+ branches :
5+ - shivam
6+ workflow_dispatch :
87jobs :
98 release :
109 runs-on : ${{ matrix.os }}
11-
1210 strategy :
1311 matrix :
14- # Building for all three major OS platforms
1512 os : [ubuntu-latest, windows-latest, macos-latest]
16-
1713 steps :
1814 - name : Checkout Code
1915 uses : actions/checkout@v4
20-
16+
2117 - name : Setup Node.js
2218 uses : actions/setup-node@v4
2319 with :
2420 node-version : 20
25- cache : ' yarn'
26-
21+ cache : " yarn"
22+
2723 - name : Install Dependencies
2824 run : yarn install --frozen-lockfile
29-
25+
26+ - name : Rebuild Native Modules
27+ run : yarn electron-rebuild
28+
3029 - name : Build React Frontend
3130 run : yarn build
32-
31+
3332 - name : Build/Release Electron App
3433 uses : samuelmeuli/action-electron-builder@v1
3534 with :
3635 github_token : ${{ secrets.GITHUB_TOKEN }}
37- # This will automatically create a draft release on GitHub
3836 release : true
39- # Use the build scripts from your package.json
4037 build_script_name : build
38+ env :
39+ # Helps with native module compilation on Windows
40+ npm_config_node_gyp : ${{ github.workspace }}/node_modules/node-gyp/bin/node-gyp.js
You can’t perform that action at this time.
0 commit comments