name: Build ISO images on: workflow_dispatch: release: types: [released] issue_comment: jobs: build-x86: container: image: node:22.3-bookworm # For manual trigger via Gitea while they implement the workflow_dispatch if: ${{ github.event.pull_request != '' || github.event.pusher != '' || github.event.comment.body == '!actions run x86' || github.event.comment.body == '!actions run all' }} steps: - name: Checkout repository uses: actions/checkout@v4 - name: Create ISO run: | apt update apt install -y xorriso curl genisoimage cpio ./build/amd64.sh - name: Upload ISO image to generic package registry run: | curl --user your_username:your_password_or_token \ --header 'authorization: Bearer ${{ secrets.GITEA_TOKEN }}' \ --upload-file halis-debian-11.6.0-amd64.img.xz \ https://git.halis.io/api/packages/athens-school/generic/halis-iso-arm64/0.0.1/halis-debian-11.6.0-amd64.img.xz build-arm64: container: image: node:22.3-bookworm runs-on: [arm64] # For manual trigger via Gitea while they implement the workflow_dispatch if: ${{ github.event.pull_request != '' || github.event.pusher != '' || github.event.comment.body == '!actions run arm' || github.event.comment.body == '!actions run all' }} steps: - name: Checkout repository uses: https://github.com/actions/checkout@v4 - name: Create ISO run: | apt update apt install -y curl xz-utils file sudo #./build/arm64.sh touch halis-debian-11.6.0-amd64.img.xz echo ${{ secrets.GITEA_TOKEN }} > halis-debian-11.6.0-amd64.img.xz sleep 10000 - name: Upload ISO image to generic package registry run: | curl --header 'authorization: Bearer ${{ secrets.GITEA_TOKEN }}' \ --upload-file halis-debian-11.6.0-amd64.img.xz \ -w "%{http_code}" \ https://git.halis.io/api/packages/athens-school/generic/halis-iso-arm64/0.0.1/halis-debian-11.6.0-amd64.img.xz