2024-02-01 17:27:05 +00:00
|
|
|
# Sample workflow for building and deploying a Hugo site to GitHub Pages
|
|
|
|
name: AppImage for Release
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
2024-02-01 17:38:30 +00:00
|
|
|
- "v*.*.*"
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: write
|
2024-02-01 17:27:05 +00:00
|
|
|
|
|
|
|
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 }}
|
|
|
|
|
2024-02-01 17:38:30 +00:00
|
|
|
- name: Build AppImage
|
2024-02-01 17:27:05 +00:00
|
|
|
run: "nix build .#appImage"
|
|
|
|
|
2024-02-01 17:38:30 +00:00
|
|
|
- name: Release
|
2024-02-01 17:27:05 +00:00
|
|
|
uses: softprops/action-gh-release@v1
|
|
|
|
with:
|
|
|
|
files: ./result/*.AppImage
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|