blob: fe7f35170a8e9027ef8a699cbb42dbc9d63aebf6 (
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 pdoc
- run: pdoc -o docs/ 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
|