-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
switch from pdoc3 to pdoc, cleanup CI workflow (#371)
- Loading branch information
Showing
1 changed file
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
name: pdoc | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
|
@@ -19,17 +23,16 @@ jobs: | |
persist-credentials: false | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
python-version: 3.12 | ||
- name: Build | ||
run: | | ||
pip install pdoc3 | ||
pip install pdoc | ||
pip install -e . | ||
# FIXME #23: add -We | ||
python -m pdoc --html PyPartMC | ||
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/[email protected] | ||
with: | ||
BRANCH: pdoc | ||
FOLDER: html/PyPartMC | ||
FOLDER: html | ||
CLEAN: true |