Write out channels.scm before building the image

pull/5/head v202106052235
David Wilson 2021-06-05 13:21:30 -07:00
parent 14fa0096f6
commit f73c05ba0b
1 changed files with 8 additions and 2 deletions

View File

@ -36,15 +36,21 @@ jobs:
- name: Build ISO - name: Build ISO
run: | 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") export RELEASE_TAG=$(date +"%Y%m%d%H%M")
echo "RELEASE_TAG=$RELEASE_TAG" >> $GITHUB_ENV echo "RELEASE_TAG=$RELEASE_TAG" >> $GITHUB_ENV
image=$(guix system image -t iso9660 installer.scm)
cp $image ./guix-installer-$RELEASE_TAG.iso cp $image ./guix-installer-$RELEASE_TAG.iso
- name: Prepare Release Notes - name: Prepare Release Notes
run: | run: |
echo $'This installer image was prepared with the following channel configuration:\r\n\r\n```\r\n' > release-notes.md 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 echo $'\r\n```' >> release-notes.md
- name: Create Release - name: Create Release