Skip to content

.

. #104

Workflow file for this run

name: Deploy Kivwtos (MkDocs)
on:
push:
branches: [ master ] # άφησέ το όπως είναι αν η default σου είναι "master"
workflow_dispatch:
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Stamp Last updated (Europe/Athens)
shell: bash
run: |
set -euo pipefail
DATE=$(TZ='Europe/Athens' date +'%Y-%m-%d')
# Βάλε εδώ τα αρχεία/μονοπάτια που περιέχουν τη γραμμή "Last updated"
TARGETS=("docs/index.md" "docs/links.md") # πρόσθεσε/αφαίρεσε ό,τι χρειάζεσαι
for f in "${TARGETS[@]}"; do
[ -f "$f" ] || continue
if grep -qE '^\*Last updated:' "$f"; then
sed -i -E "s/^\*Last updated: .*\*/\*Last updated: ${DATE}\*/" "$f"
else
printf "\n*Last updated: %s*\n" "$DATE" >> "$f"
fi
done
- run: pip install mkdocs-material mkdocs-minify-plugin mkdocs-git-revision-date-localized-plugin
- run: rm -rf site
- run: mkdocs gh-deploy --force --clean --verbose