mirror of
https://github.com/GenderDysphoria/GenderDysphoria.fyi.git
synced 2025-02-07 10:16:16 +00:00
where are the pdfs going?
This commit is contained in:
parent
ce0262ac4c
commit
d1570fe861
31
.github/workflows/build.yml
vendored
31
.github/workflows/build.yml
vendored
@ -12,6 +12,11 @@ jobs:
|
|||||||
- name: Install GraphicsMagick
|
- name: Install GraphicsMagick
|
||||||
run: sudo apt 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 }}
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
@ -44,28 +49,6 @@ jobs:
|
|||||||
- name: Build site
|
- name: Build site
|
||||||
run: npm run build
|
run: npm run build
|
||||||
|
|
||||||
# - name: Upload Site Build
|
|
||||||
# uses: actions/upload-artifact@v3
|
|
||||||
# with:
|
|
||||||
# name: site-html
|
|
||||||
# path: |
|
|
||||||
# dist
|
|
||||||
|
|
||||||
|
|
||||||
# render-pdfs:
|
|
||||||
# runs-on: ubuntu-latest
|
|
||||||
# needs: build-site
|
|
||||||
# steps:
|
|
||||||
- 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: Download site build
|
|
||||||
# uses: actions/download-artifact@v3
|
|
||||||
# with:
|
|
||||||
# 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 \
|
||||||
@ -102,9 +85,13 @@ jobs:
|
|||||||
--run-all-compositor-stages-before-draw --print-to-pdf="${{ github.workspace }}/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: List dist
|
||||||
|
run: ls -la ${{ github.workspace }}/dist
|
||||||
|
|
||||||
- name: Upload PDFs
|
- name: Upload PDFs
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: site-pdfs
|
name: site-pdfs
|
||||||
path: |
|
path: |
|
||||||
|
${{ github.workspace }}/dist
|
||||||
**.pdf
|
**.pdf
|
||||||
|
Loading…
x
Reference in New Issue
Block a user