mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
53 lines
1.5 KiB
YAML
53 lines
1.5 KiB
YAML
# This workflow will...
|
|
|
|
name: Release Linux
|
|
|
|
env:
|
|
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
release:
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest]
|
|
|
|
steps:
|
|
- name: Check out Git repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install rpm/flatpak packages
|
|
run: sudo apt-get install -y flatpak flatpak-builder rpm libarchive-tools
|
|
|
|
- name: Setup flatpak repo
|
|
run: |
|
|
flatpak remote-add --if-not-exists --user \
|
|
flathub https://flathub.org/repo/flathub.flatpakrepo
|
|
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22.11.0
|
|
cache: "npm"
|
|
- run: npm ci
|
|
- run: npm run build
|
|
|
|
- name: Build deb
|
|
run: npx electron-builder --config electron-builder.config.js --publish always --linux deb --x64
|
|
|
|
- name: Build rpm
|
|
run: npx electron-builder --config electron-builder.config.js --publish always --linux rpm --x64
|
|
|
|
- name: Build flatpak
|
|
run: env DEBUG="@malept/flatpak-bundler" npx electron-builder --config electron-builder.config.js --publish always --linux flatpak
|
|
|
|
- name: Upload artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: release
|
|
path: release
|