aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-04-03 09:44:38 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-04-03 09:48:46 +0300
commit8e16fe5e761febd4f6034fb78fd5428356f997dd (patch)
tree69afc8d808345987e65b86ef5e0e22c3196604df
parentupdate the PDF (diff)
downloadcv-8e16fe5e761febd4f6034fb78fd5428356f997dd.tar.gz
cv-8e16fe5e761febd4f6034fb78fd5428356f997dd.zip
workflows/build: upload PDF to GitHub Pages
Diffstat (limited to '')
-rw-r--r--.github/workflows/build.yml13
1 files changed, 11 insertions, 2 deletions
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'