Test creating a release from a successful build

pull/3/head
David Wilson 2021-05-30 13:09:57 -07:00
parent 7b2993bbdf
commit 46f897767d
1 changed files with 20 additions and 6 deletions

View File

@ -5,9 +5,9 @@ on:
branches: branches:
- master - master
# schedule: schedule:
# # build every 2 weeks # build every week
# - cron: "0 0 */14 * *" - cron: "0 0 */7 * *"
# Allows you to run this workflow manually from the Actions tab # Allows you to run this workflow manually from the Actions tab
workflow_dispatch: workflow_dispatch:
@ -39,7 +39,21 @@ jobs:
image=$(guix system image -t iso9660 installer.scm) image=$(guix system image -t iso9660 installer.scm)
cp $image ./guix-installer.iso cp $image ./guix-installer.iso
- uses: actions/upload-artifact@v2 - name: Prepare Release Notes
run: |
echo "This image was prepared with the following channel configuration:\n\n```\n" > release-notes.md
guix describe -f channels >> release-notes.md
echo "\n```" >> release-notes.md
# - uses: actions/upload-artifact@v2
# with:
# name: guix-installer
# path: guix-installer.iso
- name: Create Release
uses: softprops/action-gh-release@v1
with: with:
name: guix-installer body_path: release-notes.md
path: guix-installer.iso env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: SystemCrafters/guix-installer