Skip to content

Using requirements and using sphin 7.1.2 #2

Using requirements and using sphin 7.1.2

Using requirements and using sphin 7.1.2 #2

Workflow file for this run

name: Build site
on:
push:
branches: ["master"]
permissions:
contents: write
pages: write
id-token: write
jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-python@v3
- name: Install dependencies
run: |
pip install -r edit_documentation_here/requirements.txt
- name: Sphinx build
run: |
sphinx-build -b html edit_documentation_here/source docs
- name: Commit documentation changes
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add .
git commit -m "Update documentation" -a || true
# The above command will fail if no changes were present, so we ignore
# the return code.
- name: Push changes
uses: ad-m/github-push-action@master
with:
branch: main
github_token: ${{ secrets.GITHUB_TOKEN }}
build:
runs-on: ubuntu-latest
needs: docs
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Pull
run: |
git pull
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Build
uses: actions/jekyll-build-pages@v1
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}