Switch to unified view

a b/.github/workflows/docs.yml
1
name: website
2
3
# build the documentation whenever there are new commits on main
4
on:
5
  push:
6
    branches:
7
      - main
8
    # Alternative: only build for tags.
9
    # tags:
10
    #   - '*'
11
12
# security: restrict permissions for CI jobs.
13
permissions:
14
  contents: read
15
16
jobs:
17
  # Build the documentation and upload the static HTML files as an artifact.
18
  build:
19
    runs-on: ubuntu-latest
20
    steps:
21
      - uses: actions/checkout@v3
22
      - uses: actions/setup-python@v4
23
        with:
24
          python-version-file: .github/python-version.txt
25
26
      # ADJUST THIS: install all dependencies (including pdoc)
27
      - run: pip install pdoc
28
      - run: python setup.py install
29
      - run: pip install -r requirements.txt
30
      # ADJUST THIS: build your documentation into docs/.
31
      # We use a custom build script for pdoc itself, ideally you just run `pdoc -o docs/ ...` here.
32
      - run: pdoc -o docs/ gpsa
33
34
      - uses: actions/upload-pages-artifact@v1
35
        with:
36
          path: docs/
37
38
  # Deploy the artifact to GitHub pages.
39
  # This is a separate job so that only actions/deploy-pages has the necessary permissions.
40
  deploy:
41
    needs: build
42
    runs-on: ubuntu-latest
43
    permissions:
44
      pages: write
45
      id-token: write
46
    environment:
47
      name: github-pages
48
      url: ${{ steps.deployment.outputs.page_url }}
49
    steps:
50
      - id: deployment
51
        uses: actions/deploy-pages@v1