Skip to content

fix: data

fix: data #304

name: TREM-Lite
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
strategy:
matrix:
config:
- os: macos-latest
platform: mac
artifact_name: TREM-Lite-macOS
artifact_path: dist/*.dmg
- os: windows-latest
platform: win
artifact_name: TREM-Lite-Windows
artifact_path: |
dist/*.exe
dist/*.msi
- os: ubuntu-latest
platform: linux
artifact_name: TREM-Lite-Linux
artifact_path: |
dist/*.AppImage
dist/*.deb
node-version: [18]
runs-on: ${{ matrix.config.os }}
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Install Linux dependencies
if: matrix.config.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y rpm
- name: Build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm run build:${{ matrix.config.platform }}
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.config.artifact_name }}
path: ${{ matrix.config.artifact_path }}
if-no-files-found: error