This commit is contained in:
DashieTM 2024-08-31 14:29:16 +02:00
parent 4123f8ccac
commit 34d6f22b61
13 changed files with 153 additions and 61 deletions

30
.github/workflows/release.yaml vendored Normal file
View file

@ -0,0 +1,30 @@
# by https://github.com/danth/stylix/blob/master/.github/workflows/docs.yml
name: Release
on:
release:
types: [created]
jobs:
build:
name: Release
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
extra-conf: |
extra-experimental-features = nix-command flakes
- name: Set up cache
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Build ISO
run: nix build github:${{ github.repository }}/${{ github.sha }}#iso
- name: Prepare ISO for upload
run: |
cp -r --dereference --no-preserve=mode,ownership result/ public/
- name: upload ISO
uses: softprops/action-gh-release@v1
with:
path: path/