From 00f749a7940897948afc88fd6b95b61a4cc9f3f4 Mon Sep 17 00:00:00 2001 From: Francesco Bartoli Date: Wed, 21 Feb 2024 09:20:26 +0100 Subject: [PATCH] Use different github action Use different github action Use different github action --- .github/requirements-docs.txt | 2 ++ .github/workflows/docs.yml | 14 ++++++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 .github/requirements-docs.txt diff --git a/.github/requirements-docs.txt b/.github/requirements-docs.txt new file mode 100644 index 0000000..fbbd2be --- /dev/null +++ b/.github/requirements-docs.txt @@ -0,0 +1,2 @@ +mkdocs-material +termynal \ No newline at end of file diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index d6d674d..c8e8fa6 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -27,6 +27,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4.1.1 + - name: Configure Git Credentials + run: | + git config user.name github-actions[bot] + git config user.email 41898282+github-actions[bot]@users.noreply.github.com - name: Setup Python uses: actions/setup-python@v5.0.0 with: @@ -36,7 +40,9 @@ jobs: - name: Build MkDocs site run: mkdocs build - name: Deploy to GitHub Pages - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.FASTGEOAPI_GITHUB_TOKEN }} - publish_dir: ./docs_build/site + uses: mhausenblas/mkdocs-deploy-gh-pages@master + env: + GITHUB_TOKEN: ${{ secrets.FASTGEOAPI_GITHUB_TOKEN }} + CONFIG_FILE: ./mkdocs.yml + EXTRA_PACKAGES: build-base + REQUIREMENTS: .github/requirements-docs.txt