mirror of
https://github.com/Streckenkunde/Anwenderdokumentation.git
synced 2025-12-06 07:58:35 +00:00
Update publish-documentation.yml
This commit is contained in:
parent
3c6cd4797e
commit
1774a7ee59
1 changed files with 15 additions and 7 deletions
22
.github/workflows/publish-documentation.yml
vendored
22
.github/workflows/publish-documentation.yml
vendored
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue