about summary refs log tree commit diff stats
path: root/.github/workflows/main.yml
blob: 6144820b4358126b5047315e387ae3fcac6e8fdb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: docs

on:
  push:
    branches: [ "master" ]

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v3
      - uses: actions/setup-python@v3
      - run: pip install -r requirements.txt
      - run: pdoc -o docs/ --favicon "https://pictshare.net/e73ask.png" --logo "https://pictshare.net/sco723.png" --footer-text "\"Here's the plan - when someone uses a feature you don't understand, simply shoot them.\" - Tim Peters" discord
# everything below is copied from the pdoc repo
      - run: tar --directory docs/ -hcf artifact.tar .
      - uses: actions/upload-artifact@v3
        with:
            name: github-pages
            path: ./artifact.tar
            
  deploy:
      needs: build
      runs-on: ubuntu-latest
      permissions:
        pages: write
        id-token: write
      environment:
        name: github-pages
        url: ${{ steps.deployment.outputs.page_url }}
      steps:
        - id: deployment
          uses: actions/deploy-pages@v1