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/ - - +