Docs2Pages #132
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docs2Pages | |
on: | |
workflow_run: | |
workflows: ["CI"] | |
types: | |
- completed | |
permissions: | |
contents: write | |
jobs: | |
build-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- uses: pdm-project/setup-pdm@v3 | |
with: | |
prerelease: false | |
enable-pep582: false | |
allow-python-prereleases: false | |
- name: Install package | |
run: pdm install | |
- name: Build documentation | |
run: | | |
mkdir gh-pages | |
touch gh-pages/.nojekyll | |
cd docs/ | |
pdm run make html | |
cp -r build/* ../gh-pages/ | |
cd ../gh-pages/ | |
cp -r html/* . | |
rm -rf html/ | |
- name: Deploy documentation | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: gh-pages |