From 8e16fe5e761febd4f6034fb78fd5428356f997dd Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 3 Apr 2021 09:44:38 +0300 Subject: workflows/build: upload PDF to GitHub Pages --- .github/workflows/build.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2eabc4a..8f3ce84 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,12 +12,21 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 - - name: Build the PDF + - name: Build run: | docker-compose build docker-compose up - - name: Upload the PDF + - name: PDF as artifact uses: actions/upload-artifact@v2 with: name: Egor_Tensin_CV_en path: cv/cv.pdf + - name: Clean up auxiliary files + run: sudo find cv/ '!' -name cv.pdf -type f -delete + - name: PDF to GitHub Pages + uses: JamesIves/github-pages-deploy-action@4.1.0 + with: + branch: gh-pages + folder: cv + single-commit: 1 + if: github.ref == 'refs/heads/master' -- cgit v1.2.3