diff --git a/.github/workflows/mkdocs_publish.yml b/.github/workflows/mkdocs_publish.yml index 937f03a..e917969 100644 --- a/.github/workflows/mkdocs_publish.yml +++ b/.github/workflows/mkdocs_publish.yml @@ -28,6 +28,14 @@ jobs: - name: Build and deploy run: | poetry run mkdocs build --verbose - poetry run mkdocs gh-deploy --verbose + + - name: Deploy to GitHub Pages + run: | + git config --global user.email "actions@github.com" + git config --global user.name "GitHub Actions" + git add . + git commit -m "Deploy MkDocs to GitHub Pages" + git branch -M gh-pages + git push origin gh-pages --force env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}