From d1570fe861ebadbe8a49010d5e0214fd14925619 Mon Sep 17 00:00:00 2001 From: "Jocelyn Badgley (Twipped)" Date: Fri, 24 Jun 2022 10:58:50 -0700 Subject: [PATCH] where are the pdfs going? --- .github/workflows/build.yml | 31 +++++++++---------------------- 1 file changed, 9 insertions(+), 22 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c7db792..2926886 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,6 +12,11 @@ jobs: - 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@v2 with: @@ -44,28 +49,6 @@ jobs: - name: Build site 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 run: | 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" \ http://127.0.0.1:8080/fr/a-imprimer/index.html + - name: List dist + run: ls -la ${{ github.workspace }}/dist + - name: Upload PDFs uses: actions/upload-artifact@v3 with: name: site-pdfs path: | + ${{ github.workspace }}/dist **.pdf