-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (46 loc) · 1.58 KB
/
docker_action.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#................................................
# In case I have to use docker credentials see:
# https://stackoverflow.com/a/64051330/8302386
#................................................
on:
schedule:
- cron: "0 23 * * SUN"
push:
branches: master
name: docker_cv
jobs:
build:
name: create the curriculum vitae pdf file
runs-on: ubuntu-latest
container:
image: mlampros/mycvitae:rstudiodev
steps:
- name: Set up Git repository
uses: actions/checkout@v3
- name: install texlive
run: |
sudo apt-get -y update
sudo apt-get install -y texlive-base texlive-latex-base
sudo apt-get install -y texlive-latex-recommended
sudo apt-get install -y texlive-xetex
sudo apt-get install -y texlive-fonts-extra
- name: install academicons with R tinytex
run: |
Rscript -e "install.packages('tinytex')"
Rscript -e "tinytex::tlmgr_install('academicons')"
- name: render the curriculum vitae
run: |
Rscript -e "print(getwd())"
Rscript -e "rmarkdown::render(input = file.path(getwd(), 'docs', 'CV.Rmd'), params = list(work_dir = getwd()))"
- name: Commit files
run: |
git config --local user.email "[email protected]"
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/