From 5693d8967f0f6389a573afa72a32f8c020126585 Mon Sep 17 00:00:00 2001 From: Kelly Sovacool Date: Thu, 12 Sep 2024 17:47:39 -0400 Subject: [PATCH] ci: use mkdocs/mike action --- .github/workflows/docs-mkdocs.yml | 25 +++++++++++++++++++++++++ .github/workflows/docs.yml | 30 ------------------------------ 2 files changed, 25 insertions(+), 30 deletions(-) create mode 100644 .github/workflows/docs-mkdocs.yml delete mode 100644 .github/workflows/docs.yml diff --git a/.github/workflows/docs-mkdocs.yml b/.github/workflows/docs-mkdocs.yml new file mode 100644 index 0000000..89b719b --- /dev/null +++ b/.github/workflows/docs-mkdocs.yml @@ -0,0 +1,25 @@ +name: docs +on: + workflow_dispatch: + release: + types: + - published + push: + branches: + - main + paths: + - "docs/**" + - "**.md" + - .github/workflows/docs-mkdocs.yml + - mkdocs.yml + +jobs: + mkdocs: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: CCBR/actions/mkdocs-mike@v0.1 + with: + github-token: ${{ github.token }} diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml deleted file mode 100644 index 0795658..0000000 --- a/.github/workflows/docs.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: mkdocs -on: - workflow_dispatch: - push: - branches: - - main - paths: - - "docs/**" - - "**.md" - - ".github/workflows/docs.yml" - - mkdocs.yml - -env: - actor: "41898282+github-actions[bot]" - -jobs: - deploy: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 - with: - python-version: 3.9 - - name: git config - run: | - git config --local user.email "${actor}@users.noreply.github.com" - git config --local user.name "$actor" - - run: pip install --upgrade pip - - run: pip install -r docs/requirements.txt - - run: mkdocs gh-deploy --force