forked from yorkie-team/codepair
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor native project deployment in electron-build.yaml: Update ele…
…ctron-builder cache clearing command and environment variable handling
- Loading branch information
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: electron-windows-nsis-build | ||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
|
||
jobs: | ||
release: | ||
runs-on: windows-latest | ||
strategy: | ||
matrix: | ||
node-version: [18.x] | ||
|
||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Install Dependencies | ||
run: | | ||
corepack enable | ||
corepack prepare [email protected] --activate | ||
pnpm install | ||
- name: Install NSIS (Nullsoft Scriptable Install System) | ||
if: runner.os == 'Windows' | ||
run: | | ||
choco install nsis --version=3.0.4.1 | ||
- name: Add NSIS to PATH | ||
if: runner.os == 'Windows' | ||
run: | | ||
echo "C:\Program Files (x86)\NSIS" >> $env:GITHUB_PATH | ||
- name: Build Electron App and Create NSIS Installer | ||
run: | | ||
pnpm run build && pnpx electron-builder --win --x64 --publish always | ||
- name: Upload Release Assets | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: release/**/*.exe | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |