Skip to content

trigger-build_pdf

trigger-build_pdf #45

Workflow file for this run

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