mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
58f8d8e243
* Fix race condition when switching version while mods are loading * add ts-node for webpack and update workflows
59 lines
1.7 KiB
YAML
59 lines
1.7 KiB
YAML
# This workflow will...
|
|
|
|
name: Build
|
|
|
|
on:
|
|
push:
|
|
branches: ["master"]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
release:
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
matrix:
|
|
os: [windows-latest, ubuntu-latest]
|
|
|
|
steps:
|
|
- name: Check out Git repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 24.11.1
|
|
cache: "npm"
|
|
|
|
# Update package lists
|
|
- name: update apt-get
|
|
if: matrix.os == 'ubuntu-latest'
|
|
run: sudo apt-get update
|
|
|
|
# Install and setup rpm/Flatpak for Ubuntu
|
|
- name: Install rpm/flatpak packages (Ubuntu only)
|
|
if: matrix.os == 'ubuntu-latest'
|
|
run: sudo apt-get install -y flatpak flatpak-builder rpm libarchive-tools
|
|
|
|
- run: npm ci
|
|
- run: npm run package
|
|
|
|
- name: Setup flatpak repo (Ubuntu only)
|
|
if: matrix.os == 'ubuntu-latest'
|
|
run: |
|
|
flatpak remote-add --if-not-exists --user \
|
|
flathub https://flathub.org/repo/flathub.flatpakrepo
|
|
|
|
# Build Flatpak package
|
|
- name: Build Flatpak (Ubuntu only)
|
|
if: matrix.os == 'ubuntu-latest'
|
|
run: |
|
|
env DEBUG="@malept/flatpak-bundler" \
|
|
npx electron-builder --config electron-builder.config.js --publish never --linux flatpak
|
|
|
|
- name: Upload artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: release-${{ matrix.os }}
|
|
path: release
|