-
Notifications
You must be signed in to change notification settings - Fork 1.1k
54 lines (42 loc) · 1.35 KB
/
vgwort.yml
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
52
# For help debugging build failures open an issue on the RStudio community with the 'github-actions' tag.
# https://community.rstudio.com/new-topic?category=Package%20development&tags=github-actions
on: deployment_status
name: Insert VGWORT zaehlmarken
jobs:
build:
if: github.event.deployment_status.state == 'success'
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KNITR_OPTIONS: "knitr.chunk.tidy=TRUE"
steps:
- name: Checkout Repo
uses: actions/checkout@v2
with:
ref: gh-pages
- name: Checkout script
uses: actions/checkout@v2
with:
ref: master
path: temp
- name: Copy script
run: |
cp -r temp/vgwort ./
rm -rf temp
- name: Install R
uses: r-lib/actions/setup-r@v2
- name: Install xml2 R package
run: |
install.packages('xml2')
shell: Rscript {0}
- name: Insert zaehlpixel
shell: bash
run: |
Rscript vgwort/vgwort-insert-zaehlmarken.R
- name: Update gh-pages
run: |
git add *.html
git config --global user.email "actions@github.com"
git config --global user.name "GH deployment"
git commit -m "Update gh-pages (zaehlmarken)" --allow-empty
git push origin gh-pages