gh-pages CI fix

This commit is contained in:
Mark Gillard 2023-04-03 19:40:02 +03:00
parent 2414d904a8
commit 3abe096513

View File

@ -1,43 +1,42 @@
name: gh-pages name: gh-pages
on: on:
push: push:
branches: branches:
- master - master
paths: paths:
- '**.h' - "**.h"
- '**.hpp' - "**.hpp"
- '**.dox' - "**.dox"
- '**.md' - "**.md"
- 'docs/**' - "docs/**"
workflow_dispatch: - "**/gh-pages.yaml"
workflow_dispatch:
jobs: jobs:
gh-pages: gh-pages:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container:
image: debian:testing
defaults: defaults:
run: run:
shell: bash shell: bash
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Install dependencies - name: Install dependencies
run: | run: |
apt -y update sudo apt -y update
apt -y install --no-install-recommends git python3 python3-pip doxygen sudo apt -y install --no-install-recommends git python3 python3-pip doxygen
pip3 install --upgrade poxy sudo -H pip3 install --upgrade poxy
- name: Generate docs - name: Generate docs
run: | run: |
cd docs cd docs
poxy --verbose poxy --verbose
- name: Deploy - name: Deploy
uses: peaceiris/actions-gh-pages@v3 uses: peaceiris/actions-gh-pages@v3
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/html publish_dir: ./docs/html