Skip to content

cleanup

cleanup #49

Workflow file for this run

name: ci
env:
GIT_DEPTH: "0"
ENABLE_LINK_CHECK: 'True'
on:
push:
branches:
- main
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- 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 -r requirements.txt
- run: pip list | grep mkdocs
- run: mkdocs gh-deploy --force --strict
- run: mkdocs build --strict
- name: Modify Urls
uses: jacobtomlinson/gha-find-replace@v3
with:
find: "assets/external/baudenbach.einsatzprotokoll.com"
replace: "https://baudenbach.einsatzprotokoll.com"
include: "**/*.html"
regex: false
- name: 📂 Publish to FTP
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.ftp_server }}
username: ${{ secrets.ftp_user }}
password: ${{ secrets.ftp_password }}
local-dir: ./public/
server-dir: public_html/