build AppImage on release and add it

This commit is contained in:
Kristian Krsnik 2024-02-01 18:27:05 +01:00
parent 4b2c95abc3
commit e590ab8258
Signed by: Kristian
GPG Key ID: FD1330AC9F909E85
1 changed files with 32 additions and 0 deletions

32
.github/workflows/AppImage.yaml vendored Normal file
View File

@ -0,0 +1,32 @@
# Sample workflow for building and deploying a Hugo site to GitHub Pages
name: AppImage for Release
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
jobs:
build:
name: Upload Release Asset
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Nix
uses: cachix/install-nix-action@v22
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: build
run: "nix build .#appImage"
- name: Release with Notes
uses: softprops/action-gh-release@v1
with:
files: ./result/*.AppImage
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}