Skip to content

Bump requests from 2.31.0 to 2.32.0 #7

Bump requests from 2.31.0 to 2.32.0

Bump requests from 2.31.0 to 2.32.0 #7

Workflow file for this run

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 }}