From c100b89b5f4ad909321d40d2c95ee38fcbcd6fd8 Mon Sep 17 00:00:00 2001 From: Freyja Odinthrir Date: Wed, 10 Sep 2025 21:45:27 -0700 Subject: [PATCH] fuck --- .gitea/workflows/deploy.yml | 74 ++----------------------------------- 1 file changed, 3 insertions(+), 71 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index fe56b07..df67c76 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -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