2021-07-23 19:37:26 -04:00
|
|
|
---
|
2021-07-10 04:04:18 -04:00
|
|
|
name: CI
|
2021-07-23 19:37:26 -04:00
|
|
|
# yamllint disable-line rule:truthy
|
2021-07-10 04:04:18 -04:00
|
|
|
on:
|
|
|
|
[push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Build
|
2021-11-20 02:32:47 -05:00
|
|
|
run: sudo ./build.sh
|
2021-07-10 04:04:18 -04:00
|
|
|
|
|
|
|
- name: print sha256sum
|
|
|
|
run: cat output/sha256
|
2021-07-23 19:37:26 -04:00
|
|
|
|
2021-07-10 04:04:18 -04:00
|
|
|
- name: Generate Tag
|
|
|
|
id: tag
|
|
|
|
run: |
|
|
|
|
VER=$(egrep ^KERNEL_VERSION build.sh|cut -d= -f2)
|
|
|
|
echo Version is $VER
|
|
|
|
echo "::set-output name=tag::${VER}"
|
2021-07-23 19:37:26 -04:00
|
|
|
|
|
|
|
- name: Upload iso artifact
|
2021-07-10 04:04:18 -04:00
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
2021-07-10 05:14:24 -04:00
|
|
|
name: mbp-ubuntu-${{ steps.tag.outputs.tag }}.z01
|
2021-07-23 19:37:26 -04:00
|
|
|
path: ${{ github.workspace }}/output/*
|
2021-07-10 05:14:24 -04:00
|
|
|
|
|
|
|
- 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-12-24 22:40:46 -05:00
|
|
|
cat livecd-${{ steps.tag.outputs.tag }}-t2.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-11-20 03:20:16 -05:00
|
|
|
|
2021-07-23 19:37:26 -04:00
|
|
|
- name: Release
|
2021-12-24 22:40:46 -05:00
|
|
|
if: github.ref == 'refs/heads/OTP'
|
2021-07-23 19:37:26 -04:00
|
|
|
uses: softprops/action-gh-release@v1
|
|
|
|
with:
|
2021-11-20 03:20:16 -05:00
|
|
|
files: ${{ github.workspace }}/*.iso
|
2021-11-20 03:20:43 -05:00
|
|
|
tag_name: v20.04-${{ steps.tag.outputs.tag }}
|
2022-02-10 22:45:57 -05:00
|
|
|
body: If you are facing blank screen after installation, try [booting using refind](https://wiki.t2linux.org/guides/refind/).
|
2021-11-20 03:20:43 -05:00
|
|
|
draft: false
|
2022-02-03 08:16:56 -05:00
|
|
|
prerelease: false
|
2021-07-23 19:37:26 -04:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|