Files
CoqResearch/.gitea/workflows/deploy.yml
T
alois bce8c1c8eb
Build and Deploy Jekyll / build (push) Has been cancelled
Actualiser .gitea/workflows/deploy.yml
2026-05-25 14:27:25 +00:00

32 lines
790 B
YAML

name: Build and Deploy Jekyll
on:
push:
branches:
- main
jobs:
build:
runs-on: native
timeout-minutes: 15
steps:
- name: Checkout
env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
run: |
git clone --depth 1 https://alois:${GITEA_TOKEN}@git.alocoq.fr/alois/CoqResearch.git .
- name: Install Ruby and Jekyll
run: |
apk add --no-cache ruby ruby-dev ruby-bundler build-base
bundle install --path vendor/bundle
- name: Build
run: |
bundle exec jekyll build
- name: Deploy
run: |
POD=$(kubectl get pods -n research -l app=research-nginx -o jsonpath='{.items[0].metadata.name}')
kubectl cp _site/. research/${POD}:/usr/share/nginx/html/