From 173a4ca9481d000fe83c867741edbf78ed4e42ad Mon Sep 17 00:00:00 2001 From: Jack O'Sullivan Date: Tue, 5 Dec 2023 14:49:54 +0000 Subject: [PATCH] Installer workflow: Create ISO instead of build artifact --- .gitea/workflows/installer.yaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/installer.yaml b/.gitea/workflows/installer.yaml index 075c92a..cf0ff56 100644 --- a/.gitea/workflows/installer.yaml +++ b/.gitea/workflows/installer.yaml @@ -25,10 +25,13 @@ jobs: login --set-default colony https://nix-cache.nul.ie "${{ secrets.NIX_CACHE_TOKEN }}" - name: Build installer ISO + id: build run: | + echo "short_rev=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT" nix build .#nixosConfigurations.installer.config.my.buildAs.iso - - name: Upload ISO - uses: actions/upload-artifact@v3 + - name: Create release for ISO + uses: https://gitea.com/actions/release-action@main with: - name: installer-iso - path: result/iso/nixos-installer-devplayer0.iso + title: Installer @ `${{ steps.build.outputs.short_rev }}` + files: | + result/iso/nixos-installer-devplayer0.iso