Skip to content

Commit

Permalink
Update documentation.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
KjellKod authored May 23, 2024
1 parent 47f4fd1 commit 18d568a
Showing 1 changed file with 48 additions and 17 deletions.
65 changes: 48 additions & 17 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,58 @@
name: Publish docs via GitHub Pages
name: Dockumentation Publish v2
on:
push:
branches:
- master
paths:
- "**.md"
- "**.yml"
- docs/**

- master
permissions:
contents: write
jobs:
build:
name: Deploy docs
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout master
uses: actions/checkout@v4
- 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



# name: Publish docs via GitHub Pages
# on:
# push:
# branches:
# - master
# paths:
# - "**.md"
# - "**.yml"
# - docs/**

# jobs:
# build:
# name: Deploy docs
# runs-on: ubuntu-latest
# steps:
# - name: Checkout master
# uses: actions/checkout@v4

- name: Deploy docs
uses: mhausenblas/mkdocs-deploy-gh-pages@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CONFIG_FILE: mkdocs.yml
EXTRA_PACKAGES: build-base
# - name: Deploy docs
# uses: mhausenblas/mkdocs-deploy-gh-pages@master
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# CONFIG_FILE: mkdocs.yml
# EXTRA_PACKAGES: build-base



Expand Down

0 comments on commit 18d568a

Please sign in to comment.