From 11914a734cff2659b14d3f91557381e31e40da95 Mon Sep 17 00:00:00 2001 From: Ou Ku Date: Thu, 26 Oct 2023 15:28:00 +0200 Subject: [PATCH] update workflow --- .github/workflows/doc_build.yml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) 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