forked from open-atmos/PyPartMC
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 848 Bytes
/
pdoc.yml
File metadata and controls
38 lines (35 loc) · 848 Bytes
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
36
37
38
name: pdoc
defaults:
run:
shell: bash
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
deploy:
strategy:
matrix:
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
persist-credentials: false
- uses: actions/setup-python@v2
with:
python-version: 3.12
- name: Build
run: |
pip install pdoc
pip install -e .
PDOC_ALLOW_EXEC=1 python -We -m pdoc -o html PyPartMC
- name: Deploy
if: ${{ github.ref == 'refs/heads/main' && matrix.platform == 'ubuntu-latest' }}
uses: JamesIves/github-pages-deploy-action@4.1.1
with:
BRANCH: pdoc
FOLDER: html
CLEAN: true