Skip to content

v0.4.22

v0.4.22 #21

Workflow file for this run

name: 'release'
on:
push:
tags:
- v?.?.?*
workflow_dispatch:
jobs:
desktop_linux:
name: linux installers
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v3
- name: Cache node modules
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install linux dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf
- name: Install Dependencies
run: npm i
# Build and publish Linux installers to github Release Draft
- name: Release for Linux
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm run electron:release -- --linux AppImage deb
- name: Install angular-cli
run: npm install -g @angular/cli
- name: Prepare Pages release
run: ./.github/scripts/prep-web-release.sh
shell: bash
- name: Publish to Pages
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: dist
desktop_windows:
name: windows installers
runs-on: windows-latest
steps:
- name: Check out
uses: actions/checkout@v3
- name: Cache node modules
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install Dependencies
run: npm i
# Build and publish Linux installers to github Release Draft
- name: Release for Windows
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm run electron:release -- --windows