Build Electron App (#345) #51
Workflow file for this run
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
name: Build and Release Electron app | |
on: | |
push: | |
tags: | |
- v* | |
paths-ignore: | |
- packages/web/** | |
jobs: | |
build_on_win: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "yarn" | |
- name: Cache node modules | |
uses: actions/cache@v4 | |
env: | |
cache-name: cache-desktop-app-modules-v1 | |
with: | |
path: | | |
node_modules | |
*/*/node_modules | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
- name: Yarn timeout | |
run: | | |
yarn config set network-timeout 600000 -g | |
- name: Install dependencies | |
run: yarn --prefer-offline --frozen-lockfile install | |
- name: Build | |
run: yarn app make | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: packages/app/out/make/squirrel.windows/x64/*.exe |