Skip to content

Commit

Permalink
added workflow for release and buiild
Browse files Browse the repository at this point in the history
  • Loading branch information
hannydevelop committed Dec 15, 2023
1 parent 2b407ec commit bdbb84d
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 5 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
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: Build/release Electron app
uses: samuelmeuli/action-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') }}
File renamed without changes.
File renamed without changes.
File renamed without changes
8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@
"description": "",
"main": "main/index.js",
"scripts": {
"clean": "rimraf dist main",
"build": "npm run clean && tsc && npm run copy",
"copy": "rsync --relative ./src/./**/*.html ./mai",
"clean": "rimraf dist",
"start": "electron ./main/index.js",
"dist": "electron-builder",
"dist": "npm run clean && electron-builder",
"dist:debug": "lldb ./dist/mac/electron-quick-start-typescript.app",
"dist:unpack": "npx asar extract ./dist/mac/electron-quick-start-typescript.app/Contents/Resources/app.asar ./dist/unpack"
},
Expand All @@ -17,7 +15,7 @@
"files": [
"main"
],
"icon": "main/public/icons/icon.icns"
"icon": "build/icon.icns"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit bdbb84d

Please sign in to comment.