-
Notifications
You must be signed in to change notification settings - Fork 2
59 lines (56 loc) · 1.44 KB
/
createMDs.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
53
54
55
56
57
58
59
name: CreateMDs
on:
workflow_run:
workflows: [UpdateDL]
types:
- completed
workflow_dispatch:
permissions:
contents: write
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: checkout gh-pages
uses: actions/checkout@v4
with:
path: gh-pages
ref: gh-pages
- name: checkout main
uses: actions/checkout@v4
with:
path: datalib
ref: main
- name: fetch jasp-desktop
uses: actions/checkout@v4
with:
repository: jasp-stats/jasp-desktop
ref: stable
path: jasp-desktop
- uses: r-lib/actions/setup-r@v2
with:
r-version: '4.3.2'
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
tinytex: true
- name: Run script
run: |
cd gh-pages
echo test
Rscript GenerateMDs.R
python .scripts/gen_index.py
quarto render
cd -
- name: GIT push to gh-pages
continue-on-error: true
env:
CI_COMMIT_MESSAGE: Automated push
CI_COMMIT_AUTHOR: Actions
run: |
cd gh-pages
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
git config --global user.email "[email protected]"
git add -A
git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}"
git push