fuck
All checks were successful
Build and deploy website. / Build static site. (push) Successful in 26m1s
Build and deploy website. / Connect to deployment host, update, and redeploy docs website. (push) Successful in 1m45s

This commit is contained in:
2025-09-10 21:45:27 -07:00
parent f92414e914
commit c100b89b5f

View File

@@ -58,79 +58,11 @@ jobs:
-
name: Copy dist to docker...
run: npm cache clean --force;cp -a dist docker/.docker/dist
# -
# name: Use Node.js
# uses: https://github.com/actions/setup-node@v2
# with:
# node-version: '20'
-
name: (EN) Generate PDF from HTML
run: |
chromium --headless --print-to-pdf-no-header \
--run-all-compositor-stages-before-draw --print-to-pdf="${{ gitea.workspace }}/dist/en.pdf" \
http://127.0.0.1:8080/en/printable/index.html
-
name: (ZH) Generate PDF from HTML
run: |
chromium --headless --print-to-pdf-no-header \
--run-all-compositor-stages-before-draw --print-to-pdf="${{ gitea.workspace }}/dist/zh.pdf" \
http://127.0.0.1:8080/zh/printable/index.html
-
name: (DE) Generate PDF from HTML
run: |
chromium --headless --print-to-pdf-no-header \
--run-all-compositor-stages-before-draw --print-to-pdf="${{ gitea.workspace }}/dist/de.pdf" \
http://127.0.0.1:8080/de/druckbar/index.html
-
name: (HU) Generate PDF from HTML
run: |
chromium --headless --print-to-pdf-no-header \
--run-all-compositor-stages-before-draw --print-to-pdf="${{ gitea.workspace }}/dist/hu.pdf" \
http://127.0.0.1:8080/hu/nyomtathato/index.html
-
name: (PL) Generate PDF from HTML
run: |
chromium --headless --print-to-pdf-no-header \
--run-all-compositor-stages-before-draw --print-to-pdf="${{ gitea.workspace }}/dist/pl.pdf" \
http://127.0.0.1:8080/pl/do-druku/index.html
-
name: (PT) Generate PDF from HTML
run: |
chromium --headless --print-to-pdf-no-header \
--run-all-compositor-stages-before-draw --print-to-pdf="${{ gitea.workspace }}/dist/pt.pdf" \
http://127.0.0.1:8080/pt/imprimivel/index.html
-
name: (FR) Generate PDF from HTML
run: |
chromium --headless --print-to-pdf-no-header \
--run-all-compositor-stages-before-draw --print-to-pdf="${{ gitea.workspace }}/dist/fr.pdf" \
http://127.0.0.1:8080/fr/a-imprimer/index.html
-
name: (NL) Generate PDF from HTML
run: |
chromium --headless --print-to-pdf-no-header \
--run-all-compositor-stages-before-draw --print-to-pdf="${{ gitea.workspace }}/dist/nl.pdf" \
http://127.0.0.1:8080/nl/afdrukbaar/index.html
-
name: List dist
run: ls -la ${{ gitea.workspace }}/dist
-
name: Upload PDFs
uses: https://github.com/actions/upload-artifact@v3
name: Use Node.js
uses: https://github.com/actions/setup-node@v2
with:
name: site-pdfs
path: |
${{ gitea.workspace }}/dist/**.pdf
retention-days: 365
node-version: '20'
-
name: Build and push docker image to gitea package store
uses: https://github.com/docker/build-push-action@v5