name: CI on: create: { } push: { } pull_request: { } jobs: build: runs-on: [self-hosted, hetzner-cax21] outputs: pkgfile: ${{ steps.pkgname.outputs.pkgfile }} steps: - name: Check out repo uses: actions/checkout@v2 - name: Install dependencies run: | sudo apt update -qq sudo apt install -yqq libguestfs-tools qemu-utils qemu-system-arm qemu-user-static binfmt-support rsync sudo wget xz-utils pigz mount dosfstools libarchive-tools - name: Build firmware run: | ./build_raspberry_pi.sh - name: Compress firmware run: | pigz -9 raspikiosk.img - name: Release build artifacts uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') with: files: | ./raspikiosk.img.gz env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}