TOSV25/.forgejo/workflows/deploy.yml
Thomas Berker edfc4a9ee2
Some checks failed
Deploy MkDocs / deploy (push) Failing after 1m24s
8th try adding pdf-export
2025-01-15 16:13:10 +01:00

36 lines
1 KiB
YAML

name: Deploy MkDocs
on:
push:
branches:
- main # or master, depending on your default branch
jobs:
deploy:
runs-on: ubuntu-20.04
container: node:18
steps:
- uses: actions/checkout@v4
- name: Install mkdocs and rsync
run: |
apt update
apt install -y mkdocs mkdocs-bootstrap mkdocs-nature mkdocs-material mkdocs-autorefs rsync weasyprint python3.11-venv
python3 -m venv my-venv
SHELL ["/bin/bash", "-c"]
source my-venv/bin/activate
pip install mkdocs-with-pdf
- name: Install SSH key
uses: https://github.com/shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_PRIVATE_KEY }}
known_hosts: ${{ secrets.SSH_KNOWN_HOSTS }}
- name: Build site
run: mkdocs build
- name: Sync
run: rsync -rv --no-o --no-g --no-perms site/ berker@192.168.1.2:/home/berker/nginxproxymanager/data/site
- uses: actions/upload-artifact@v3
with:
name: many-artifacts
path: site/