Skip to content

Commit

Permalink
Adding CI
Browse files Browse the repository at this point in the history
  • Loading branch information
HDardenne committed Aug 24, 2021
1 parent 07c475e commit 4e76a9c
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 1 deletion.
64 changes: 64 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Node.js CI

on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build
- run: npm run build-installer
- name: Archive production artifacts
uses: actions/upload-artifact@v2
with:
name: dist-without-markdown
path: release/*.AppImage
build-macos:
runs-on: macos-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build
- run: npm run build-installer
- name: Archive production artifacts
uses: actions/upload-artifact@v2
with:
name: dist-without-markdown
path: release/*.dmg
build-windows:
runs-on: windows-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build
- run: npm run build-installer
- name: Archive production artifacts
uses: actions/upload-artifact@v2
with:
name: dist-without-markdown
path: release/*.exe
3 changes: 3 additions & 0 deletions electron-builder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@ directories:
buildResources: 'dist'
win:
target: ['nsis', 'portable']
icon: './icon-1024x1024.png'
mac:
target: ['dmg']
category: 'public.app-category.utilities'
icon: './icon-1024x1024.png'
dmg:
linux:
target: ['AppImage']
category: 'Development'
icon: './icon-1024x1024.png'
Binary file added icon-1024x1024.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"start:dev": "electron-forge start",
"dev:angular": "npm run build:angular -- --watch",
"dev:electron": "npm run build:electron -- --watch",
"build-installer": "electron-builder"
"build-installer": "electron-builder --publish never"
},
"private": true,
"dependencies": {
Expand Down

0 comments on commit 4e76a9c

Please sign in to comment.