Skip to content

update a bunch of deps and switch to yarn #684

update a bunch of deps and switch to yarn

update a bunch of deps and switch to yarn #684

Workflow file for this run

name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/[email protected]
- name: Setup Python environment
uses: actions/[email protected]
with:
python-version: '3.10'
- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: 22.2.0
check-latest: true
- name: Install dependencies
run: |
npm install -g [email protected]
yarn ci
- name: Build Distribution
run: |
git lfs pull
yarn run validate-files
yarn run build:dist
env:
SENTRY_AUTH: ${{ secrets.SENTRY_AUTH }}
- name: Build Linux
if: ${{ matrix.os == 'ubuntu-latest' }}
run: yarn run build:linux -- --publish=onTagOrDraft
env:
GH_TOKEN: ${{ secrets.DEPLOY_TOKEN }}
- name: Build Windows
if: ${{ matrix.os == 'windows-latest' }}
run: yarn run build:win -- --publish=onTagOrDraft
env:
GH_TOKEN: ${{ secrets.DEPLOY_TOKEN }}
- name: Build Mac
if: ${{ matrix.os == 'macOS-latest' }}
run: yarn run build:mac -- --publish=onTagOrDraft
env:
GH_TOKEN: ${{ secrets.DEPLOY_TOKEN }}
- name: Upload Artifacts Windows
uses: actions/[email protected]
if: ${{ matrix.os == 'windows-latest' }}
with:
name: srm-build-windows
path: |
release/*.exe
release/*.msi
- name: Upload Artifacts Mac
uses: actions/[email protected]
if: ${{ matrix.os == 'macOS-latest' }}
with:
name: srm-build-mac
path: release/*.dmg
- name: Upload Artifacts Linux
uses: actions/[email protected]
if: ${{ matrix.os == 'ubuntu-latest' }}
with:
name: srm-build-linux
path: |
release/*.deb
release/*.AppImage