Skip to content

Use different method to add non-free repo #55

Use different method to add non-free repo

Use different method to add non-free repo #55

Workflow file for this run

name: docs
on: [push, pull_request, workflow_dispatch]
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
deployments: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
docs:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Emacs
uses: purcell/setup-emacs@master
with:
version: 28.1
- name: Export org to md
run: |
cd docs
emacs --batch --load export-org.el
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
pip3 install -r docs/requirements.txt
pip3 install -r backend/requirements.txt
pip3 install -r collectors/requirements.txt
- name: Sphinx build
run: |
sphinx-apidoc -o ./docs/ backend/ backend/*setup*
sphinx-apidoc -o ./docs/ collectors/ collectors/*setup*
sphinx-build docs _build
cp -r ./docs/img _build/img
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
# Upload entire repository
path: '_build'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1