2021-05-26 13:12:36 +00:00
|
|
|
name: Build Guix Installer
|
|
|
|
|
|
|
|
on:
|
2021-05-26 13:15:20 +00:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
2021-05-26 13:12:36 +00:00
|
|
|
|
2021-05-30 20:09:57 +00:00
|
|
|
schedule:
|
|
|
|
# build every week
|
|
|
|
- cron: "0 0 */7 * *"
|
2021-05-26 13:12:36 +00:00
|
|
|
|
|
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Git checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Install Guix
|
|
|
|
uses: PromyLOPh/guix-install-action@v1
|
2021-05-26 13:23:15 +00:00
|
|
|
with:
|
|
|
|
channels: |
|
|
|
|
(cons* (channel
|
|
|
|
(name 'nonguix)
|
|
|
|
(url "https://gitlab.com/nonguix/nonguix")
|
|
|
|
;; Enable signature verification:
|
|
|
|
(introduction
|
|
|
|
(make-channel-introduction
|
|
|
|
"897c1a470da759236cc11798f4e0a5f7d4d59fbc"
|
|
|
|
(openpgp-fingerprint
|
|
|
|
"2A39 3FFF 68F4 EF7A 3D29 12AF 6F51 20A0 22FB B2D5"))))
|
|
|
|
%default-channels)
|
2021-05-26 13:12:36 +00:00
|
|
|
|
2021-05-30 20:25:30 +00:00
|
|
|
# - name: Build ISO
|
|
|
|
# run: |
|
|
|
|
# image=$(guix system image -t iso9660 installer.scm)
|
|
|
|
# cp $image ./guix-installer.iso
|
2021-05-26 15:23:55 +00:00
|
|
|
|
2021-05-30 20:09:57 +00:00
|
|
|
- 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
|
2021-05-26 15:23:55 +00:00
|
|
|
with:
|
2021-05-30 20:09:57 +00:00
|
|
|
body_path: release-notes.md
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
GITHUB_REPOSITORY: SystemCrafters/guix-installer
|