From 365a77de9d495741ac89d00a78656b28211e096d Mon Sep 17 00:00:00 2001 From: Thomas Berker Date: Wed, 15 Jan 2025 16:23:49 +0100 Subject: [PATCH] 10th try adding pdf-export --- .forgejo/workflows/deploy.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml index b4f3033..52901ca 100644 --- a/.forgejo/workflows/deploy.yml +++ b/.forgejo/workflows/deploy.yml @@ -14,9 +14,10 @@ jobs: - 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 + apt install -y rsync weasyprint python3.11-venv python3 -m venv my-venv . my-venv/bin/activate + pip install mkdocs mkdocs-bootstrap mkdocs-nature mkdocs-material mkdocs-autorefs pip install mkdocs-with-pdf - name: Install SSH key uses: https://github.com/shimataro/ssh-key-action@v2 @@ -24,12 +25,13 @@ jobs: key: ${{ secrets.SSH_PRIVATE_KEY }} known_hosts: ${{ secrets.SSH_KNOWN_HOSTS }} - name: Build site - run: mkdocs build + run: | + . my-venv/bin/activate + 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/ - - +