update: release workflow #32
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 snap install snapcraft --classic | |
sudo apt-get install rpm | |
- name: build-linux | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
if: matrix.os == 'ubuntu-latest' | |
run: 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 |