Skip to content

Commit

Permalink
Build and deploy pdoc with gitnub action
Browse files Browse the repository at this point in the history
Instead of having generated files checked in to the repo.
  • Loading branch information
kh31d4r committed Oct 15, 2024
1 parent 8586646 commit 32806ee
Show file tree
Hide file tree
Showing 12 changed files with 33 additions and 9,887 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,34 @@ jobs:
uses: ./.github/actions/install
- name: Lint with Pylint
run: make pylint

build:
runs-on: ubuntu-24.04
needs: [install]
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Install dependencies
uses: ./.github/actions/install
- name: Build pdoc
id: build
run: make pdoc
- name: Upload pdoc
id: deploy
uses: actions/[email protected]
with:
path: docs

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-24.04
needs: build
steps:
- name: Deploy to GitHub Pages
id: deploy
uses: actions/[email protected]
permissions:
id-token: write
pages: write
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ aggregate.error
aggregate.ignore
aggregate.log
db.sqlite
docs/
logs/
# pycharm
.idea/
Expand All @@ -16,4 +17,4 @@ build/
.venv
__pycache__/
data/marvinMorning_date.txt
.coverage
.coverage
520 changes: 0 additions & 520 deletions docs/pdoc/bot.html

This file was deleted.

548 changes: 0 additions & 548 deletions docs/pdoc/discord_bot.html

This file was deleted.

223 changes: 0 additions & 223 deletions docs/pdoc/index.html

This file was deleted.

1,239 changes: 0 additions & 1,239 deletions docs/pdoc/irc_bot.html

This file was deleted.

745 changes: 0 additions & 745 deletions docs/pdoc/main.html

This file was deleted.

2,115 changes: 0 additions & 2,115 deletions docs/pdoc/marvin_actions.html

This file was deleted.

508 changes: 0 additions & 508 deletions docs/pdoc/marvin_general_actions.html

This file was deleted.

46 changes: 0 additions & 46 deletions docs/pdoc/search.js

This file was deleted.

1,966 changes: 0 additions & 1,966 deletions docs/pdoc/test_main.html

This file was deleted.

1,976 changes: 0 additions & 1,976 deletions docs/pdoc/test_marvin_actions.html

This file was deleted.

0 comments on commit 32806ee

Please sign in to comment.