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