32 lines
790 B
YAML
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/ |