mirror of
https://github.com/marzer/tomlplusplus.git
synced 2024-11-02 11:26:26 +00:00
62c4c34e15
Also took the opportunity to add some sensible filters to the main ci script.
45 lines
844 B
YAML
45 lines
844 B
YAML
name: gh-pages
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- '**.h'
|
|
- '**.hpp'
|
|
- '**.dox'
|
|
- 'docs/**'
|
|
workflow_dispatch:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
gh-pages:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: debian:testing
|
|
|
|
defaults:
|
|
run:
|
|
shell: sh
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
apt-get -y update
|
|
apt-get -y install --no-install-recommends python3-pip doxygen git
|
|
pip3 install --upgrade --requirement tools/requirements.txt
|
|
|
|
- name: Generate docs
|
|
run: |
|
|
cd docs
|
|
poxy --verbose
|
|
|
|
- name: Deploy
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: ./docs/html
|