diff --git a/.github/workflows/test-docs.yaml b/.github/workflows/test-docs.yaml new file mode 100644 index 000000000000..3886e227d614 --- /dev/null +++ b/.github/workflows/test-docs.yaml @@ -0,0 +1,28 @@ +name: Test docs +on: + pull_request: + paths: + - 'docs/**' + - 'mkdocs.yml' +jobs: + build-documents: + name: Documentation Test + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + persist-credentials: true + - uses: actions/setup-python@v4 + with: + python-version: 3.x + - name: Install dependencies + run: | + pip install -r docs/build/requirements.txt + - name: Configure the git user + run: | + git config user.name "knqyf263" + git config user.email "knqyf263@gmail.com" + - name: Deploy the dev documents + run: mike deploy test diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 0eed27755d6b..86055091ea93 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -4,11 +4,16 @@ on: branches: - main paths-ignore: - - '*.md' + - '**.md' - 'docs/**' - 'mkdocs.yml' - 'LICENSE' pull_request: + paths-ignore: + - '**.md' + - 'docs/**' + - 'mkdocs.yml' + - 'LICENSE' jobs: test: name: Test @@ -116,24 +121,3 @@ jobs: version: v1.4.1 args: release --skip-sign --snapshot --rm-dist --skip-publish --timeout 90m - build-documents: - name: Documentation Test - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 0 - persist-credentials: true - - uses: actions/setup-python@v4 - with: - python-version: 3.x - - name: Install dependencies - run: | - pip install -r docs/build/requirements.txt - - name: Configure the git user - run: | - git config user.name "knqyf263" - git config user.email "knqyf263@gmail.com" - - name: Deploy the dev documents - run: mike deploy test