41 lines
941 B
YAML
41 lines
941 B
YAML
name: Build Docs
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: artixlinux/artixlinux:base
|
|
options: --privileged
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install docs dependencies
|
|
run: |
|
|
pacman -Syu --noconfirm --needed --overwrite='*' \
|
|
ruby \
|
|
ruby-bundler \
|
|
nodejs \
|
|
npm \
|
|
git \
|
|
docker
|
|
|
|
- name: Build Jekyll docs
|
|
run: |
|
|
cd docs
|
|
bundle config set --local path vendor/bundle
|
|
bundle install
|
|
bundle exec jekyll build
|
|
ls -la _site/
|
|
|
|
- name: Deploy to gitea-docs volume
|
|
run: |
|
|
docker run --rm \
|
|
-v "$(pwd)/docs/_site":/source:ro \
|
|
-v gitea-docs:/target \
|
|
alpine:latest \
|
|
sh -c "rm -rf /target/* && cp -a /source/. /target/ && ls -la /target/"
|