Skip to content

Commit f014c23

Browse files
committed
Update pkgdown.yml
1 parent 56e7d85 commit f014c23

File tree

1 file changed

+3
-36
lines changed

1 file changed

+3
-36
lines changed

.github/workflows/pkgdown.yml

Lines changed: 3 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ name: pkgdown
1515

1616
jobs:
1717
pkgdown:
18-
runs-on: macOS-latest
18+
runs-on: ubuntu-latest
1919

2020
env:
2121
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
@@ -26,38 +26,5 @@ jobs:
2626
with:
2727
submodules: true
2828

29-
- uses: r-lib/actions/setup-r@v2
30-
31-
- uses: r-lib/actions/setup-pandoc@v2
32-
33-
- name: Query dependencies
34-
run: |
35-
install.packages('remotes')
36-
saveRDS(remotes::dev_package_deps(dependencies = c('soft', 'Config/Needs/website')), ".github/depends.Rds", version = 2)
37-
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
38-
shell: Rscript {0}
39-
40-
- name: Cache R packages
41-
uses: actions/cache@v4
42-
with:
43-
path: ${{ env.R_LIBS_USER }}
44-
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
45-
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-
46-
47-
- name: Install Mac OS dependencies
48-
run: |
49-
brew install libgit2
50-
51-
- name: Install dependencies
52-
run: |
53-
remotes::install_deps(dependencies = c('soft', 'Config/Needs/website'))
54-
shell: Rscript {0}
55-
56-
- name: Install package
57-
run: R CMD INSTALL .
58-
59-
- name: Deploy package
60-
run: |
61-
git config --local user.email "[email protected]"
62-
git config --local user.name "GitHub Actions"
63-
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)'
29+
steps:
30+
- uses: ms609/actions/pkgdown@main

0 commit comments

Comments
 (0)