Update CI
Some checks failed
Build and deploy website. / Build static site. (push) Failing after 22s
Build and deploy website. / Connect to deployment host, update, and redeploy docs website. (push) Has been skipped

This commit is contained in:
2025-09-10 20:16:08 -07:00
parent 190d9e2bf2
commit 153db9b935

View File

@@ -45,7 +45,12 @@ jobs:
name: Use Node.js
uses: https://github.com/actions/setup-node@v2
with:
node-version: '14'
node-version: '20'
-
name: Install Chrome
run: |
wget https://dl.google.com/linux/direct/google-chrome-stable_current_arm64.deb
sudo apt install ./google-chrome-stable_current_arm64.deb
-
name: Install node dependencies
run: npm ci
@@ -58,11 +63,79 @@ 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: Use Node.js
uses: https://github.com/actions/setup-node@v2
name: (EN) Generate PDF from HTML
run: |
google-chrome --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: |
google-chrome --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: |
google-chrome --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: |
google-chrome --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: |
google-chrome --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: |
google-chrome --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: |
google-chrome --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: |
google-chrome --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: actions/upload-artifact@v3
with:
node-version: '20'
name: site-pdfs
path: |
${{ gitea.workspace }}/dist/**.pdf
retention-days: 365
-
name: Build and push docker image to gitea package store
uses: https://github.com/docker/build-push-action@v5
@@ -80,7 +153,7 @@ jobs:
with:
name: build_artifact
path: artifact.7z
retention-days: 7
retention-days: 365
job2:
needs: job1
name: Connect to deployment host, update, and redeploy docs website.