Files
openzfs-docs/.github/workflows/publish.yml
2021-08-23 12:46:06 +03:00

33 lines
826 B
YAML

name: Publish Github Pages
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Prepare
run: |
sudo apt-get update -y
sudo apt-get install -y git python3-pip mandoc
pip install -r docs/requirements.txt
- name: Gen_man_pages
run: make man
- name: Gen_feature_matrix
run: make feature_matrix
- name: Gen_sphinx
uses: ammaraskar/sphinx-action@master
with:
pre-build-command: "apt-get update -y --allow-releaseinfo-change && apt-get install -y git"
docs-folder: "docs/"
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build/html
force_orphan: true