Skip to content

Commit

Permalink
update action
Browse files Browse the repository at this point in the history
  • Loading branch information
amxv committed Dec 21, 2024
1 parent 6c76ea6 commit f0d375f
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 35 deletions.
60 changes: 26 additions & 34 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,29 @@ name: Build/release
on: push

jobs:
release:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]

steps:
- name: Check out Git repository
uses: actions/checkout@v1

- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v1
with:
node-version: 16

- name: Compile Electron App
uses: x6Pnda/action-electron-compiler@v1
with:
# # GitHub token, automatically provided to the action
# # (Optional)
# github_token: !{{ secrets.github_token }}

# If the commit is tagged with a version (e.g. "v1.0.0"),
# (Optional)
release: ${{ startsWith(github.ref, 'refs/tags/v') }}

# Package manager. NPM, PNPM and Yarn supported. Install Yarn and PNPM yourself. Default is NPM
# (Optional)
package_manager: NPM

# Skip buiding the application
# (Optional)
skip_build: false
release:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]

steps:
- name: Check out Git repository
uses: actions/checkout@v1

- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v1
with:
node-version: 10

- name: Build/release Electron app
uses: ZacharyWin/z-electron-builder@v1
with:
# GitHub token, automatically provided to the action
# (No need to define this secret in the repo settings)
github_token: ${{ secrets.github_token }}

# If the commit is tagged with a version (e.g. "v1.0.0"),
# release the app after building
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
"preview": "vite preview",
"check": "tsc --noEmit && biome check --write .",
"electron:dev": "tsc -p electron/tsconfig.json && vite",
"electron:build": "vite build && tsc -p electron/tsconfig.json && electron-builder --mac"
"electron:build": "vite build && tsc -p electron/tsconfig.json && electron-builder --mac",
"app:dir": "electron-builder --dir",
"app:dist": "electron-builder"
},
"dependencies": {
"lucide-react": "^0.468.0",
Expand Down

0 comments on commit f0d375f

Please sign in to comment.