mirror of
https://github.com/GenderDysphoria/GenderDysphoria.fyi.git
synced 2025-11-26 13:02:42 +00:00
* Translate auxiliary strings to Greek * Translate index to Greek * update contacts (el) * fix a string in index * Update language menu (EL) * update lang label for el/index * Update el/index * Translate what-is-gender to el * translate history to el * Update aux strings (el) * patch el/history * translate euphoria to el * harmonise terms in el/what-is-gender * translate phys. dysphoria to el * translate biochem. dysphoria to el * translate social dysphoria to el/ * translate societal dysphoria to el * translate sexual dysphoria to el * correct a word in societal dysphoria el * translate presentational dysphoria to el * translate existential dysphoria to el * translate managed dysphoria to el * correct typo in en/impostor-syndrome * translate impostor syndrome to el * translate am-i-trans to el * translate diagnoses to el * translate treatment to el * translate causes to el * translate chromosomes to el * translate hormones to el * translate theca cell in el/causes.md after verifying official terminology * fix yaml header in el/hormones.md * translate second-puberty-masc to el * Fix incorrect link in en/hormones * Minor rewording in el/second-puberty-masc * Minor fixes in el/second-puberty-masc * translate second-puberty-fem to el * Commit images not requiring translations to el/ * add el to engines * replace a cyrillic e with a latin e because i'm an idiot * Fix minor yaml inconsistencies in el md files * Add el print step to build.yml * translate conclusion to el * translate images to el :') * translate tweets to el * Translate untranslated term in el/_images/_steroidogenesis * Fix detefcted mistakes in el translation (.md) * Fix detected mistakes in el translation (.md) * reformat twitter-i18n.json * correct yaml in second-puberty-fem (el)
120 lines
4.0 KiB
YAML
120 lines
4.0 KiB
YAML
name: Ensure Site Builds Cleanly
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
build-site:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
|
|
- name: Install GraphicsMagick
|
|
run: sudo apt install graphicsmagick
|
|
|
|
- name: Install Chrome
|
|
run: |
|
|
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
|
|
sudo apt install ./google-chrome-stable_current_amd64.deb
|
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '14'
|
|
cache: 'npm'
|
|
|
|
- name: Restore node_modules cache
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: node_modules
|
|
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/package-lock.json') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-node_modules
|
|
|
|
- name: Restore Asset Cache
|
|
uses: actions/cache@v4
|
|
with:
|
|
key: if-cache
|
|
path: |
|
|
./if-cache/*
|
|
./if-cache.json
|
|
./twitter-cache.json
|
|
|
|
- name: Install node dependencies
|
|
run: npm ci
|
|
|
|
- name: Lint JS code
|
|
run: npm test
|
|
|
|
- name: Build site
|
|
run: npm run build
|
|
|
|
- name: Spawn HTTP server
|
|
uses: Eun/http-server-action@v1
|
|
with:
|
|
directory: dist
|
|
|
|
- name: (EN) Generate PDF from HTML
|
|
run: |
|
|
google-chrome --headless --print-to-pdf-no-header \
|
|
--run-all-compositor-stages-before-draw --print-to-pdf="${{ github.workspace }}/dist/en.pdf" \
|
|
http://127.0.0.1:8080/en/printable/index.html
|
|
|
|
- name: (EL) Generate PDF from HTML
|
|
run: |
|
|
google-chrome --headless --print-to-pdf-no-header \
|
|
--run-all-compositor-stages-before-draw --print-to-pdf="${{ github.workspace }}/dist/el.pdf" \
|
|
http://127.0.0.1:8080/el/pros-ektypwsh/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="${{ github.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="${{ github.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="${{ github.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="${{ github.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="${{ github.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="${{ github.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="${{ github.workspace }}/dist/nl.pdf" \
|
|
http://127.0.0.1:8080/nl/afdrukbaar/index.html
|
|
|
|
- name: List dist
|
|
run: ls -la ${{ github.workspace }}/dist
|
|
|
|
- name: Upload PDFs
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: site-pdfs
|
|
path: |
|
|
${{ github.workspace }}/dist/**.pdf
|