Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerkuou committed Oct 26, 2023
1 parent 2501b46 commit 11914a7
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/doc_build.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
# Build Documentation when new release created

name: Build docs
# on:
# release:
# types:
# - published

on:
release:
types:
- published
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
Expand All @@ -13,8 +19,14 @@ jobs:
steps:
- name: Checkout main
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install .[docs]
python -m pip install .[docs]
- name: Deploy docs
run: mkdocs gh-deploy
run: mkdocs gh-deploy --force

0 comments on commit 11914a7

Please sign in to comment.