name: Build and Deploy Jekyll on: push: branches: - main jobs: build: runs-on: native timeout-minutes: 15 steps: - name: Build Jekyll in Kubernetes job run: | cat <<'EOF' | kubectl apply -f - apiVersion: batch/v1 kind: Job metadata: name: jekyll-build namespace: ci spec: backoffLimit: 0 template: spec: restartPolicy: Never containers: - name: jekyll image: ruby:3.3-alpine command: - sh - -c - | apk add --no-cache git build-base git clone --depth 1 https://git.alocoq.fr/alois/CoqResearch.git /work cd /work bundle install bundle exec jekyll build env: - name: GITEA_TOKEN valueFrom: secretKeyRef: name: gitea-token key: token EOF