From e590ab825851a9e1368f115623df43fd9b587c07 Mon Sep 17 00:00:00 2001 From: Kristian Krsnik Date: Thu, 1 Feb 2024 18:27:05 +0100 Subject: [PATCH] build AppImage on release and add it --- .github/workflows/AppImage.yaml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/AppImage.yaml diff --git a/.github/workflows/AppImage.yaml b/.github/workflows/AppImage.yaml new file mode 100644 index 0000000..0fde7b2 --- /dev/null +++ b/.github/workflows/AppImage.yaml @@ -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 }}