mirror of
https://github.com/GenderDysphoria/GenderDysphoria.fyi.git
synced 2025-01-31 07:16:17 +00:00
Lets make this simpler
This commit is contained in:
parent
54e27a349b
commit
ce0262ac4c
42
.github/workflows/build.yml
vendored
42
.github/workflows/build.yml
vendored
@ -31,7 +31,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
key: if-cache
|
key: if-cache
|
||||||
path: |
|
path: |
|
||||||
./if-cache
|
./if-cache/*
|
||||||
./if-cache.json
|
./if-cache.json
|
||||||
./twitter-cache.json
|
./twitter-cache.json
|
||||||
|
|
||||||
@ -44,62 +44,62 @@ jobs:
|
|||||||
- name: Build site
|
- name: Build site
|
||||||
run: npm run build
|
run: npm run build
|
||||||
|
|
||||||
- name: Upload Site Build
|
# - name: Upload Site Build
|
||||||
uses: actions/upload-artifact@v3
|
# uses: actions/upload-artifact@v3
|
||||||
with:
|
# with:
|
||||||
name: site-html
|
# name: site-html
|
||||||
path: |
|
# path: |
|
||||||
dist
|
# dist
|
||||||
|
|
||||||
|
|
||||||
render-pdfs:
|
# render-pdfs:
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
needs: build-site
|
# needs: build-site
|
||||||
steps:
|
# steps:
|
||||||
- name: Install Chrome
|
- name: Install Chrome
|
||||||
run: |
|
run: |
|
||||||
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
|
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
|
||||||
sudo apt install ./google-chrome-stable_current_amd64.deb
|
sudo apt install ./google-chrome-stable_current_amd64.deb
|
||||||
|
|
||||||
- name: Download site build
|
# - name: Download site build
|
||||||
uses: actions/download-artifact@v3
|
# uses: actions/download-artifact@v3
|
||||||
with:
|
# with:
|
||||||
name: site-html
|
# name: site-html
|
||||||
|
|
||||||
- name: (EN) Generate PDF from HTML
|
- name: (EN) Generate PDF from HTML
|
||||||
run: |
|
run: |
|
||||||
google-chrome --headless --print-to-pdf-no-header \
|
google-chrome --headless --print-to-pdf-no-header \
|
||||||
--run-all-compositor-stages-before-draw --print-to-pdf="./dist/en.pdf" \
|
--run-all-compositor-stages-before-draw --print-to-pdf="${{ github.workspace }}/dist/en.pdf" \
|
||||||
http://127.0.0.1:8080/en/printable/index.html
|
http://127.0.0.1:8080/en/printable/index.html
|
||||||
|
|
||||||
- name: (ZH) Generate PDF from HTML
|
- name: (ZH) Generate PDF from HTML
|
||||||
run: |
|
run: |
|
||||||
google-chrome --headless --print-to-pdf-no-header \
|
google-chrome --headless --print-to-pdf-no-header \
|
||||||
--run-all-compositor-stages-before-draw --print-to-pdf="./dist/zh.pdf" \
|
--run-all-compositor-stages-before-draw --print-to-pdf="${{ github.workspace }}/dist/zh.pdf" \
|
||||||
http://127.0.0.1:8080/zh/printable/index.html
|
http://127.0.0.1:8080/zh/printable/index.html
|
||||||
|
|
||||||
- name: (DE) Generate PDF from HTML
|
- name: (DE) Generate PDF from HTML
|
||||||
run: |
|
run: |
|
||||||
google-chrome --headless --print-to-pdf-no-header \
|
google-chrome --headless --print-to-pdf-no-header \
|
||||||
--run-all-compositor-stages-before-draw --print-to-pdf="./dist/de.pdf" \
|
--run-all-compositor-stages-before-draw --print-to-pdf="${{ github.workspace }}/dist/de.pdf" \
|
||||||
http://127.0.0.1:8080/de/druckbar/index.html
|
http://127.0.0.1:8080/de/druckbar/index.html
|
||||||
|
|
||||||
- name: (HU) Generate PDF from HTML
|
- name: (HU) Generate PDF from HTML
|
||||||
run: |
|
run: |
|
||||||
google-chrome --headless --print-to-pdf-no-header \
|
google-chrome --headless --print-to-pdf-no-header \
|
||||||
--run-all-compositor-stages-before-draw --print-to-pdf="./dist/hu.pdf" \
|
--run-all-compositor-stages-before-draw --print-to-pdf="${{ github.workspace }}/dist/hu.pdf" \
|
||||||
http://127.0.0.1:8080/hu/nyomtathato/index.html
|
http://127.0.0.1:8080/hu/nyomtathato/index.html
|
||||||
|
|
||||||
- name: (PL) Generate PDF from HTML
|
- name: (PL) Generate PDF from HTML
|
||||||
run: |
|
run: |
|
||||||
google-chrome --headless --print-to-pdf-no-header \
|
google-chrome --headless --print-to-pdf-no-header \
|
||||||
--run-all-compositor-stages-before-draw --print-to-pdf="./dist/pl.pdf" \
|
--run-all-compositor-stages-before-draw --print-to-pdf="${{ github.workspace }}/dist/pl.pdf" \
|
||||||
http://127.0.0.1:8080/pl/do-druku/index.html
|
http://127.0.0.1:8080/pl/do-druku/index.html
|
||||||
|
|
||||||
- name: (FR) Generate PDF from HTML
|
- name: (FR) Generate PDF from HTML
|
||||||
run: |
|
run: |
|
||||||
google-chrome --headless --print-to-pdf-no-header \
|
google-chrome --headless --print-to-pdf-no-header \
|
||||||
--run-all-compositor-stages-before-draw --print-to-pdf="./dist/fr.pdf" \
|
--run-all-compositor-stages-before-draw --print-to-pdf="${{ github.workspace }}/dist/fr.pdf" \
|
||||||
http://127.0.0.1:8080/fr/a-imprimer/index.html
|
http://127.0.0.1:8080/fr/a-imprimer/index.html
|
||||||
|
|
||||||
- name: Upload PDFs
|
- name: Upload PDFs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user