chore: lf #24
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
on: | |
push: | |
tags: | |
- "v*" | |
name: Create Release | |
jobs: | |
build: | |
name: Build | |
strategy: | |
matrix: | |
platform: [macos-latest, windows-latest, ubuntu-latest] | |
runs-on: ${{ matrix.platform }} | |
env: | |
GH_TOKEN: ${{secrets.GH_TOKEN}} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Dependencies | |
run: npm ci | |
- name: Lint | |
if: matrix.platform == 'ubuntu-latest' | |
run: npm run lint | |
- name: Build | |
run: npm run build:client | |
- name: Build for macOS | |
if: matrix.platform == 'macos-latest' | |
run: npm run build:mac | |
- name: Build for Windows | |
if: matrix.platform == 'windows-latest' | |
run: | | |
npm run build:win | |
npm run build:nsis | |
- name: Build for Linux | |
if: matrix.platform == 'ubuntu-latest' | |
env: | |
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }} | |
SNAPCRAFT_BUILD_ENVIRONMENT: host | |
run: | | |
npm run build:linux | |
sudo snap install snapcraft --classic | |
npm run build:snap |