Update publish-documentation.yml

This commit is contained in:
Dennis Heinrich 2024-03-25 05:24:28 +01:00 committed by GitHub
parent 3c6cd4797e
commit 1774a7ee59
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,4 +1,4 @@
name: Publish Documentation name: Dokumentation ändern
on: on:
push: push:
branches: branches:
@ -12,19 +12,27 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Configure Git Credentials - name: Git Credentials setzen
run: | run: |
git config user.name github-actions[bot] git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- uses: actions/setup-python@v5 - name: Python installieren
uses: actions/setup-python@v5
with: with:
python-version: 3.x python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV - name: Cache-ID anzeigen
- uses: actions/cache@v4 run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- name: Cache nutzen
uses: actions/cache@v4
with: with:
key: mkdocs-material-${{ env.cache_id }} key: mkdocs-material-${{ env.cache_id }}
path: .cache path: .cache
restore-keys: | restore-keys: |
mkdocs-material- mkdocs-material-
- run: pip install mkdocs-material - name: MkDocs installieren
- run: mkdocs gh-deploy --force run: pip install mkdocs-material
- name: GitHub Pages veröffentlichen
run: mkdocs gh-deploy --force
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CUSTOM_DOMAIN: help.streckenkunde.dennis-heinri.ch