Skip to content

Commit cce6d41

Browse files
Updated deployment code
1 parent 56b242d commit cce6d41

File tree

5 files changed

+336
-146
lines changed

5 files changed

+336
-146
lines changed

.github/workflows/pkgdown.yaml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,24 @@ jobs:
2222
- uses: r-lib/actions/setup-r@v2
2323
with:
2424
use-public-rspm: true
25+
- name: Install pkgdown
26+
run: Rscript -e 'install.packages("pkgdown")'
2527

2628
- uses: r-lib/actions/setup-r-dependencies@v2
2729
with:
2830
extra-packages: pkgdown
2931
needs: website
32+
33+
- name: Debug info
34+
run: |
35+
Rscript -e 'sessionInfo()'
36+
Rscript -e 'installed.packages()[,"Package"]'
37+
38+
- name: Build site
39+
run: Rscript -e 'pkgdown::build_site()'
3040

3141
- name: Deploy package
3242
run: |
33-
git config --local user.name "$GITHUB_ACTOR"
34-
git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com"
35-
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)'
43+
git config --local user.name "${{ github.actor }}"
44+
git config --local user.email "${{ github.actor }}@users.noreply.github.com"
45+
Rscript -e 'pkgdown::deploy_to_branch(new_process = TRUE, branch = "gh-pages")'

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Description: This package contains utility functions for BLE LTER IM team.
1010
License: CC BY 4.0
1111
Encoding: UTF-8
1212
LazyData: true
13-
RoxygenNote: 7.2.3
13+
RoxygenNote: 7.3.2
1414
Depends: R (>= 2.10)
1515
Imports:
1616
RPostgres,

0 commit comments

Comments
 (0)