Files
exception/.github/workflows/gh-pages.yml
Emil Dotchevski e448b40f2d adoc docs
2026-01-12 15:54:37 -05:00

47 lines
1.3 KiB
YAML

name: documentation
on:
push:
branches:
- master
- develop
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install packages
run: |
sudo gem install asciidoctor asciidoctor-pdf rouge
- name: Setup Boost
run: |
REF=${GITHUB_BASE_REF:-$GITHUB_REF}
BOOST_BRANCH=develop && [ "$REF" == "master" ] && BOOST_BRANCH=master || true
cd ..
git clone -b $BOOST_BRANCH --depth 1 https://github.com/boostorg/boost.git boost-root
cd boost-root
cp -r $GITHUB_WORKSPACE/* libs/exception
git submodule update --init tools/build
git submodule update --init tools/boost_install
git submodule update --init libs/config
./bootstrap.sh
- name: Create user-config.jam
run: |
echo "using asciidoctor ;" > ~/user-config.jam
- name: Build documentation
run: |
cd ../boost-root/libs/exception/doc
../../../b2
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@4.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: ../boost-root/libs/exception/doc/html