From f73c05ba0b0501fe7ce3b51dbb31adbf5a024a2e Mon Sep 17 00:00:00 2001 From: David Wilson Date: Sat, 5 Jun 2021 13:21:30 -0700 Subject: [PATCH] Write out channels.scm before building the image --- .github/workflows/build.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index d6111d7..d27aeb7 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -36,15 +36,21 @@ jobs: - name: Build ISO run: | + # Write out the channels file so it can be included + guix describe -f channels > channels.scm + + # Build the image + image=$(guix system image -t iso9660 installer.scm) + + # Copy the image to the local folder with a better name export RELEASE_TAG=$(date +"%Y%m%d%H%M") echo "RELEASE_TAG=$RELEASE_TAG" >> $GITHUB_ENV - image=$(guix system image -t iso9660 installer.scm) cp $image ./guix-installer-$RELEASE_TAG.iso - name: Prepare Release Notes run: | echo $'This installer image was prepared with the following channel configuration:\r\n\r\n```\r\n' > release-notes.md - guix describe -f channels >> release-notes.md + cat channels.scm >> release-notes.ms echo $'\r\n```' >> release-notes.md - name: Create Release