large scale apps rephrase #48
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build HTML and PDF | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y $(cat apt-packages.txt) | |
pip3 install setuptools | |
pip3 install -r requirements.txt | |
- name: Build GitHub Pages | |
run: | | |
git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/* | |
git config --global user.email "cvbot@jorgebg.com" | |
git config --global user.name "CV Bot" | |
mkdir -p .data | |
python3 -m cv pdf --source=cv.md | |
cp build/tex/cv.pdf ".data/Jorge Barata.pdf" | |
python3 -m cv pdf --source=cv.edu.md | |
cp build/tex/cv.pdf ".data/Jorge Barata - Education.pdf" | |
cp cv.md .data/index.md | |
cp cv.edu.md .data/edu.md | |
cp cv.ext.md .data/extended.md | |
git stash | |
git checkout gh-pages | |
mv .data/* . | |
git add "Jorge Barata.pdf" "Jorge Barata - Education.pdf" index.md edu.md extended.md | |
git commit -m"Automated update" | |
rmdir .data | |
git push origin gh-pages:gh-pages |