Skip to content

Commit

Permalink
mkdocs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ddebowczyk committed Feb 29, 2024
1 parent 577f4d8 commit ded0da5
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions .github/workflows/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,28 @@ on:
branches:
- main

permissions:
contents: write
jobs:
build:
name: Deploy docs
deploy:
runs-on: ubuntu-latest
container:
image: squidfunk/mkdocs-material
steps:
- name: Checkout main
uses: actions/checkout@v2
- name: Deploy docs
uses: mhausenblas/mkdocs-deploy-gh-pages@1.26
- uses: actions/checkout@v4
- 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/setup-python@v5
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: pip install mkdocs-material
- run: mkdocs gh-deploy --force
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CONFIG_FILE: mkdocs.yml
REQUIREMENTS: requirements-doc.txt

0 comments on commit ded0da5

Please sign in to comment.