update: release workflows #35
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: Release Electron App | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
release: | |
runs-on: ${{ matrix.os }} | |
permissions: | |
contents: write | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v3 | |
- name: Install Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Install Dependencies | |
run: npm install --force | |
- name: Install Linux Dependencies | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
sudo apt-get update | |
sudo apt-get install rpm libopenjp2-tools bsdtar | |
sudo snap install snapcraft --classic | |
- name: build-linux | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
env SHELL=bash | |
npm run build:linux | |
- name: build-mac | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
if: matrix.os == 'macos-latest' | |
run: npm run build:mac | |
- name: build-win | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
if: matrix.os == 'windows-latest' | |
run: npm run build:win |