Skip to content

Commit

Permalink
Update build_iso.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
oomfiee authored Sep 30, 2024
1 parent a5c730e commit 5f78a57
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/build_iso.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,15 @@ jobs:
- uses: DeterminateSystems/magic-nix-cache-action@v8
- name: build ISO
run: |
nix build .#iso -L
nix build .#iso --accept-flake-config
mkdir iso || true
ISO=$(head -n1 result/nix-support/hydra-build-products | cut -d'/' -f6)
sudo ln "result/iso/${ISO}" iso/nyx.iso
sha256sum "iso/nyx.iso" > "iso/nyx.iso.sha256"
sed -i -r "s/ .*\/(.+)/ \1/g" "iso/nyx.iso.sha256"
ls -la iso
- name: Upload
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
for artefact in "iso/"*; do
gh release upload "${{ github.ref }}" "${artefact}" --clobber
done
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/v')
with:
files: "nyx*.iso*"
files: "iso/*"

0 comments on commit 5f78a57

Please sign in to comment.