generated from realxinzhao/gcamdata-clean
-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (46 loc) · 1.44 KB
/
docs.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: docs
on:
push:
branches:
- main
jobs:
pkgdown:
runs-on: ubuntu-latest
env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN}}
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-pandoc@v1
- uses: r-lib/actions/setup-r@v1
with:
use-public-rspm: true
- name: Ubuntu config
run: |
sudo apt-get install libcurl4-openssl-dev
sudo fallocate -l 8g /mnt/for_fork.swap
sudo chmod 600 /mnt/for_fork.swap
sudo mkswap /mnt/for_fork.swap
sudo swapon /mnt/for_fork.swap
- name: Install dependencies
run: |
install.packages(c("remotes","rcmdcheck", "knitr"), repos = "https://cloud.r-project.org")
shell: Rscript {0}
- uses: r-lib/actions/setup-r-dependencies@v1
with:
extra-packages: pkgdown
needs: website
- name: Deploy package
run: |
git config --local user.name "$GITHUB_ACTOR"
git config --local user.email "[email protected]"
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)'
- name: Track file
run: |
git add .github/r-depends.rds
git commit -m "track file"
- name: Auto commit
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: gh-pages
push_options: --force