Skip to content

ci: fix antora generation #2

ci: fix antora generation

ci: fix antora generation #2

Workflow file for this run

name: Documentation
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Cache Docker layers
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
- name: Build and run Antora
run: |
docker run -u $(id -u) -v $PWD:/antora:Z --rm -t antora/antora antora-playbook.yml --cache-dir=/tmp/.antora-cache
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/site