Update .gitignore #6
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: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
name: knit-cv | |
jobs: | |
knit-cv: | |
runs-on: windows-latest | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: r-lib/actions/setup-pandoc@v2 | |
- uses: r-lib/actions/setup-r@v2 | |
- uses: r-lib/actions/setup-renv@v2 | |
- uses: r-lib/actions/setup-tinytex@v2 | |
- run: tlmgr --version | |
- name: render cv | |
run: | | |
Rscript -e "rmarkdown::render(here::here('cv.Rmd'))" | |
- name: generate pdf | |
run: | | |
Rscript -e "pagedown::chrome_print('cv.html')" | |
- name: Commit files | |
run: | | |
git config --local user.email "actions@github.com" | |
git config --local user.name "GitHub Actions" | |
git add --all | |
git commit -am "add the cv.pdf file to the 'docs' directory of the repository" | |
git push | |
- name: Upload pdf file | |
uses: actions/upload-artifact@v1 | |
with: | |
name: docs | |
path: docs/ |