diff --git a/.github/workflows/doc_build.yml b/.github/workflows/doc_build.yml index a2c9972..4a28f07 100644 --- a/.github/workflows/doc_build.yml +++ b/.github/workflows/doc_build.yml @@ -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: @@ -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