mirror of
https://github.com/Streckenkunde/Anwenderdokumentation.git
synced 2025-12-05 23:48: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:
|
||||
push:
|
||||
branches:
|
||||
|
|
@ -12,19 +12,27 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Configure Git Credentials
|
||||
- name: Git Credentials setzen
|
||||
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
|
||||
- name: Python installieren
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: 3.x
|
||||
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
|
||||
- uses: actions/cache@v4
|
||||
- name: Cache-ID anzeigen
|
||||
run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
|
||||
- name: Cache nutzen
|
||||
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
|
||||
- name: MkDocs installieren
|
||||
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