Skip to content

Commit

Permalink
Use mkdocs command to publish
Browse files Browse the repository at this point in the history
  • Loading branch information
francbartoli committed Feb 22, 2024
1 parent 00f749a commit 3acb53c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/requirements-docs.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
mkdocs-material
termynal
termynal
25 changes: 9 additions & 16 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,23 +26,16 @@ jobs:
deploy-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5.0.0
uses: actions/setup-python@v5
with:
python-version: "3.10"
python-version: 3.*
- uses: actions/cache@v2
with:
key: ${{ github.ref }}
path: .cache
- name: Install dependencies
run: pip install mkdocs mkdocs-material termynal
- name: Build MkDocs site
run: mkdocs build
- name: Deploy to GitHub Pages
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
- name: Deploy and publish to GitHub Pages
run: mkdocs gh-deploy --force

0 comments on commit 3acb53c

Please sign in to comment.