--- 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 }}-mbp.z?? > cd.zip echo unzip cd.zip EOF - name: Release if: github.ref == 'refs/heads/master' uses: softprops/action-gh-release@v1 with: data: ${{ github.workspace }}/output/* tag_name: v20.04-${{ steps.tag.outputs.tag }} draft: true env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}