trigger-build_pdf #45
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
on: | |
repository_dispatch: | |
types: [trigger-build_pdf] | |
name: Build pdf | |
jobs: | |
Build_deploy: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@master | |
with: | |
ref: gh-pages | |
- name: Sleep for 5 minutes (time to wait for html) | |
uses: jakejarvis/wait-action@master | |
with: | |
time: '300s' | |
- name: Convert html to pdf | |
run: | | |
for VARIABLE in `ls -d cours*` | |
do | |
sudo chmod ugo+rwx $VARIABLE | |
docker run --rm -t -v `pwd`:/slides astefanutti/decktape https://econumuds.github.io/BIO109/$VARIABLE/ $VARIABLE/$VARIABLE.pdf | |
done | |
- name: Deploy gh_pages | |
run: | | |
git config --global user.name 'willvieira' | |
git config --global user.email 'willian.vieira@usherbrooke.ca' | |
git add . | |
git commit -m "deploy pdf :rocket:" | |
git push origin gh-pages |