mirror of
https://github.com/t2linux/T2-Ubuntu.git
synced 2024-10-26 15:17:39 +03:00
51 lines
1.3 KiB
YAML
51 lines
1.3 KiB
YAML
---
|
|
name: CI
|
|
# yamllint disable-line rule:truthy
|
|
on:
|
|
[push]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Build
|
|
run: sudo ./build.sh
|
|
|
|
- name: print sha256sum
|
|
run: cat output/sha256
|
|
|
|
- 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}"
|
|
|
|
- name: Upload iso artifact
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: mbp-ubuntu-${{ steps.tag.outputs.tag }}.z01
|
|
path: ${{ github.workspace }}/output/*
|
|
|
|
- name: Instructions for putting it back together
|
|
run: |
|
|
cat << EOF
|
|
Download all the artifacts, and put them in a folder
|
|
without other files. Then run:"
|
|
unzip "*.z??.zip"
|
|
cat livecd-${{ steps.tag.outputs.tag }}-t2.z?? > cd.zip
|
|
echo unzip cd.zip
|
|
EOF
|
|
|
|
- name: Release
|
|
if: github.ref == 'refs/heads/OTP'
|
|
uses: softprops/action-gh-release@v1
|
|
with:
|
|
files: ${{ github.workspace }}/*.iso
|
|
tag_name: v20.04-${{ steps.tag.outputs.tag }}
|
|
draft: false
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|