docs: fix accidental markdown mistake #19
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 App | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
permissions: | |
contents: read | |
packages: write | |
issues: write | |
pull-requests: write | |
jobs: | |
build: | |
name: Release App | |
# Run this job on the following operating systems | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
# To make the app correctly on MacOS, the Python version must be < 3.12 | |
- name: Install Python 3.11.9 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11.9' | |
- name: Use Node.js and install dependencies | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- run: npm ci | |
- name: Build Vue front end | |
run: npm run build | |
- name: Build Electron app on Windows and Linux | |
if: matrix.os == 'windows-latest' || matrix.os == 'ubuntu-latest' | |
run: npm run make | |
- name: Build Electron app on MacOS | |
if: matrix.os == 'macos-latest' | |
run: npm run make -- --arch=universal --platform=darwin | |
- name: Publish Electron app to GitHub Releases | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: npm run publish |