4 changed files with 63 additions and 4 deletions
@ -0,0 +1,39 @@ |
|||||||
|
# Builds Linux AppImage + deb and attaches them to a GitHub Release when you push a tag like v19.2.3 |
||||||
|
name: Release Electron (Linux) |
||||||
|
|
||||||
|
on: |
||||||
|
push: |
||||||
|
tags: |
||||||
|
- 'v*' |
||||||
|
|
||||||
|
permissions: |
||||||
|
contents: write |
||||||
|
|
||||||
|
jobs: |
||||||
|
linux: |
||||||
|
runs-on: ubuntu-latest |
||||||
|
steps: |
||||||
|
- uses: actions/checkout@v4 |
||||||
|
|
||||||
|
- uses: actions/setup-node@v4 |
||||||
|
with: |
||||||
|
node-version: '22' |
||||||
|
cache: 'npm' |
||||||
|
|
||||||
|
- name: Install dependencies |
||||||
|
run: npm ci |
||||||
|
|
||||||
|
- name: Build & pack |
||||||
|
run: npm run electron:pack |
||||||
|
env: |
||||||
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
||||||
|
|
||||||
|
- name: Upload artifacts to release |
||||||
|
uses: softprops/action-gh-release@v2 |
||||||
|
with: |
||||||
|
files: | |
||||||
|
release/*.AppImage |
||||||
|
release/*.deb |
||||||
|
generate_release_notes: true |
||||||
|
env: |
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
||||||
Loading…
Reference in new issue