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

67 lines
1.9 KiB
YAML
Raw Permalink Normal View History

2021-07-23 19:37:26 -04:00
---
2022-12-20 04:29:23 -05:00
name: CI
2021-07-23 19:37:26 -04:00
# yamllint disable-line rule:truthy
on:
2023-02-07 17:53:34 -05:00
[push, workflow_dispatch]
jobs:
2022-10-21 13:12:37 -04:00
ISO:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
2022-10-18 16:36:22 -04:00
- name: Build
2022-11-08 00:47:41 -05:00
run: sudo ./build_in_docker.sh
- name: print sha256sum
2023-05-22 10:54:45 -04:00
run: cat output/sha256*
2021-07-23 19:37:26 -04:00
- name: Generate Tag
id: tag
run: |
VER=$(egrep ^KERNEL_VERSION build.sh|cut -d= -f2)
REL=$(grep "PKGREL=\d*" build.sh | cut -d = -f2)
echo Version is $VER
2022-10-18 12:34:10 -04:00
echo "isotag=${VER}-${REL}" >> $GITHUB_ENV
2021-07-23 19:37:26 -04:00
- name: Upload iso artifact
uses: actions/upload-artifact@v4
with:
name: mbp-ubuntu-${{ steps.tag.outputs.tag }}.z01
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"
2022-10-18 12:34:10 -04:00
cat livecd-${{ env.isotag }}-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
2023-03-06 08:24:46 -05:00
- name: Compress ISO
run: |
cd ${{ github.workspace }}
mkdir ISO
mv ${{ github.workspace }}/*.iso ${{ github.workspace }}/ISO
cd ISO
ISONAME=$(ls ${{ github.workspace }}/ISO | grep .iso | rev | cut -c 5- | rev)
2023-03-06 09:20:38 -05:00
tar -czvf ${ISONAME}.tar.gz ${ISONAME}.iso
2023-03-06 08:24:46 -05:00
ls -l
2021-07-23 19:37:26 -04:00
- name: Release
2023-05-03 07:26:08 -04:00
if: github.ref == 'refs/heads/kubuntuMainline'
uses: softprops/action-gh-release@v2
2021-07-23 19:37:26 -04:00
with:
2023-05-06 09:54:46 -04:00
#files: ${{ github.workspace }}/ISO/*.tar.gz
#files: ${{ github.workspace }}/ISO/*.iso
files: ${{ github.workspace }}/output/*
2022-11-08 01:08:32 -05:00
tag_name: v${{ env.isotag }}
2022-08-23 08:41:29 -04:00
body_path: ${{ github.workspace }}/.github/workflows/instructions.txt
2021-11-20 03:20:43 -05:00
draft: false
2022-07-01 08:51:17 -04:00
prerelease: false
2021-07-23 19:37:26 -04:00
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}