Bump version: 0.5.41 → 0.5.42 #4
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: Docs | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
build_docs: | |
runs-on: ubuntu-latest | |
permissions: write-all | |
steps: | |
#---------------------------------------------- | |
# check-out repo and set-up python and poetry | |
#---------------------------------------------- | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Setup Python and Poetry | |
uses: ./.github/actions/setup | |
#---------------------------------------------- | |
# install dependencies | |
#---------------------------------------------- | |
- name: Install dependencies | |
uses: ./.github/actions/install | |
- name: Install pandoc | |
run: sudo apt-get -y install pandoc | |
#---------------------------------------------- | |
# build docs | |
#---------------------------------------------- | |
- name: Build docs | |
uses: ./.github/actions/build_docs | |
build_and_deploy_docs: | |
if: github.ref == 'refs/heads/main' | |
runs-on: ubuntu-latest | |
permissions: write-all | |
steps: | |
#---------------------------------------------- | |
# check-out repo and set-up python and poetry | |
#---------------------------------------------- | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Setup Python and Poetry | |
uses: ./.github/actions/setup | |
#---------------------------------------------- | |
# install dependencies | |
#---------------------------------------------- | |
- name: Install dependencies | |
uses: ./.github/actions/install | |
- name: Install pandoc | |
run: sudo apt-get -y install pandoc | |
#---------------------------------------------- | |
# build docs | |
#---------------------------------------------- | |
- name: Install dependencies | |
uses: ./.github/actions/build_docs | |
- name: Commit files | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
touch docs/_build/html/.nojekyll | |
echo 'biocypher.org' > docs/_build/html/CNAME | |
git add -f docs/_build/ | |
git commit -m "Update autodoc" -a | |
#---------------------------------------------- | |
# deploy docs | |
#---------------------------------------------- | |
- name: Deploy | |
uses: s0/git-publish-subdir-action@develop | |
env: | |
REPO: self | |
BRANCH: gh-pages | |
FOLDER: docs/_build/html | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |