Improve release notes generation

This commit is contained in:
David Wilson 2021-05-30 14:35:32 -07:00
parent 9d84762ed4
commit c85491231d

View file

@ -43,20 +43,15 @@ jobs:
run: | run: |
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
echo "# This 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 guix describe -f channels >> release-notes.md
echo "\r\n\`\`\`" >> release-notes.md echo $'\r\n```' >> release-notes.md
# - uses: actions/upload-artifact@v2
# with:
# name: guix-installer
# path: guix-installer.iso
- name: Create Release - name: Create Release
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
with: with:
name: Guix Installer v${{ env.RELEASE_TAG }} name: Guix Installer - ${{ env.RELEASE_TAG }}
tag_name: ${{ env.RELEASE_TAG }} tag_name: v${{ env.RELEASE_TAG }}
body_path: release-notes.md body_path: release-notes.md
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}