mbp-ubuntu/.github/workflows/CI.yml

50 lines
1.3 KiB
YAML
Raw Normal View History

2021-07-23 19:37:26 -04:00
---
name: CI
2021-07-23 19:37:26 -04:00
# yamllint disable-line rule:truthy
on:
[push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
2021-09-03 06:34:28 -04:00
- name: Configure variables
id: variables
run: |
2021-09-11 18:15:37 -04:00
BUILD=$(date '+%Y%m%d%H%M%S')
echo "::set-output name=build::${BUILD}"
2021-09-03 06:34:28 -04:00
- name: Build
2021-09-11 18:15:37 -04:00
run: sudo ./build.sh
- name: print sha256sum
run: cat output/sha256
2021-07-23 19:37:26 -04:00
- name: Upload iso artifact
uses: actions/upload-artifact@v2
with:
2021-09-11 18:15:37 -04:00
name: mbp-ubuntu-${{ steps.variables.outputs.build }}
2021-07-23 19:37:26 -04:00
path: ${{ github.workspace }}/output/*
- name: Instructions for putting it back together
2021-07-10 05:48:02 -04:00
run: |
2021-07-23 19:37:26 -04:00
cat << EOF
Download all the artifacts, and put them in a folder
without other files. Then run:"
unzip "*.z??.zip"
2021-09-11 18:15:37 -04:00
cat livecd-${{ steps.variables.outputs.build }}-mbp.z?? > cd.zip
2021-07-10 05:48:02 -04:00
echo unzip cd.zip
2021-07-23 19:37:26 -04:00
EOF
2021-09-03 06:34:28 -04:00
2021-07-23 19:37:26 -04:00
- name: Release
if: github.ref == 'refs/heads/master'
uses: softprops/action-gh-release@v1
with:
2021-09-03 06:34:28 -04:00
files: ${{ github.workspace }}/output/*
2021-09-11 18:15:37 -04:00
tag_name: v20.04-${{ steps.variables.outputs.build }}
2021-07-23 19:37:26 -04:00
draft: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}