File tree 3 files changed +23
-12
lines changed
3 files changed +23
-12
lines changed Original file line number Diff line number Diff line change 1
- # Workflow derived from https://github.com/r-lib/actions/tree/master /examples
1
+ # Workflow derived from https://github.com/r-lib/actions/tree/v2 /examples
2
2
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3
3
on :
4
4
push :
@@ -15,12 +15,12 @@ jobs:
15
15
GITHUB_PAT : ${{ secrets.GITHUB_TOKEN }}
16
16
R_KEEP_PKG_SOURCE : yes
17
17
steps :
18
- - uses : actions/checkout@v2
18
+ - uses : actions/checkout@v3
19
19
20
20
- uses : r-lib/actions/setup-r@v2
21
21
with :
22
22
use-public-rspm : true
23
-
23
+
24
24
- uses : r-lib/actions/setup-r-dependencies@v2
25
25
with :
26
26
extra-packages : any::rcmdcheck
Original file line number Diff line number Diff line change 1
- # Workflow derived from https://github.com/r-lib/actions/tree/master /examples
1
+ # Workflow derived from https://github.com/r-lib/actions/tree/v2 /examples
2
2
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3
3
on :
4
4
push :
5
5
branches : [main, master]
6
+ pull_request :
7
+ branches : [main, master]
6
8
release :
7
9
types : [published]
8
10
workflow_dispatch :
@@ -12,10 +14,13 @@ name: pkgdown
12
14
jobs :
13
15
pkgdown :
14
16
runs-on : ubuntu-latest
17
+ # Only restrict concurrency for non-PR jobs
18
+ concurrency :
19
+ group : pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
15
20
env :
16
21
GITHUB_PAT : ${{ secrets.GITHUB_TOKEN }}
17
22
steps :
18
- - uses : actions/checkout@v2
23
+ - uses : actions/checkout@v3
19
24
20
25
- uses : r-lib/actions/setup-pandoc@v2
21
26
@@ -25,11 +30,17 @@ jobs:
25
30
26
31
- uses : r-lib/actions/setup-r-dependencies@v2
27
32
with :
28
- extra-packages : pkgdown
33
+ extra-packages : any:: pkgdown, local::.
29
34
needs : website
30
35
31
- - name : Deploy package
32
- run : |
33
- git config --local user.name "$GITHUB_ACTOR"
34
- git config --local user.email "[email protected] "
35
- Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)'
36
+ - name : Build site
37
+ run : pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
38
+ shell : Rscript {0}
39
+
40
+ - name : Deploy to GitHub pages 🚀
41
+ if : github.event_name != 'pull_request'
42
+
43
+ with :
44
+ clean : false
45
+ branch : gh-pages
46
+ folder : docs
Original file line number Diff line number Diff line change 1
1
# epiprocess
2
2
3
3
<!-- badges: start -->
4
- [ ![ R-CMD-check] ( https://github.com/cmu-delphi/epiprocess/workflows/R-CMD-check/badge.svg )] ( https://github.com/cmu-delphi/epiprocess/actions )
4
+ [ ![ R-CMD-check] ( https://github.com/cmu-delphi/epiprocess/actions/ workflows/R-CMD-check.yaml /badge.svg )] ( https://github.com/cmu-delphi/epiprocess/actions/workflows/R-CMD-check.yaml )
5
5
<!-- badges: end -->
6
6
7
7
This package introduces a common data structure for epidemiological data sets
You can’t perform that action at this time.
0 commit comments