Skip to content

Commit

Permalink
tesdssd
Browse files Browse the repository at this point in the history
  • Loading branch information
oomfiee committed Sep 30, 2024
1 parent b25be9b commit e3f0d92
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/build_iso.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ISO build
name: build and release

on:
workflow_dispatch:
Expand All @@ -13,19 +13,22 @@ jobs:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v14
- uses: DeterminateSystems/magic-nix-cache-action@v8
- name: Build Custom ISO
- name: build ISO
run: |
nix build .#iso -L --accept-flake-config
nix build .#iso -L
mkdir iso || true
ISO=$(head -n1 result/nix-support/hydra-build-products | cut -d'/' -f6)
sudo mv "result/iso/${ISO}" iso/${ISO}
sha256sum "iso/console-${ISO}" > "iso/${ISO}.sha256"
sed -i -r "s/ .*\/(.+)/ \1/g" "iso/${ISO}.sha256"
- name: Upload
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
for artefact in "iso/"*; do
gh release upload "${{ github.ref }}" "${artefact}" --clobber
done
- name: Publish
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
Expand Down

0 comments on commit e3f0d92

Please sign in to comment.