Release Linux #1
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
name: Release Linux | |
on: | |
push: | |
tags: | |
- v* | |
workflow_dispatch: | |
inputs: | |
branch: | |
description: 'Branch to build' | |
required: true | |
default: 'main' | |
jobs: | |
build-linux: | |
name: Build Linux binaries | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '22.x' | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y snapd | |
sudo snap install snapcraft --classic | |
- name: Build and package application | |
run: | | |
yarn | |
yarn build:linux | |
- name: Create Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: dist/*.yml,dist/*.AppImage,dist/*.deb,dist/*.rpm | |
draft: true | |
token: ${{ secrets.GH_TOKEN }} |