Skip to content

Commit 2117404

Browse files
reuse existing workflow
1 parent 61b4b2c commit 2117404

1 file changed

Lines changed: 1 addition & 47 deletions

File tree

Lines changed: 1 addition & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,9 @@
1-
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
2-
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3-
#
4-
# NOTE: The {pkgdown} workflow in "noSuggests" mode makes sure that the vignettes or
5-
# examples evaluated only on the website are also using soft dependencies conditionally.
6-
71
on:
8-
push:
9-
branches: [main, master]
102
pull_request:
113
branches: [main, master]
124

135
name: pkgdown-no-suggests
146

157
jobs:
168
pkgdown-no-suggests:
17-
runs-on: ubuntu-latest
18-
19-
env:
20-
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
21-
R_KEEP_PKG_SOURCE: yes
22-
23-
steps:
24-
- uses: actions/checkout@v5
25-
26-
# Always try to use the latest pandoc version
27-
# https://github.com/jgm/pandoc/releases
28-
- uses: r-lib/actions/setup-pandoc@v2
29-
with:
30-
pandoc-version: "2.19.2"
31-
32-
- uses: r-lib/actions/setup-r@v2
33-
with:
34-
r-version: "release"
35-
http-user-agent: "release"
36-
use-public-rspm: true
37-
38-
- uses: r-lib/actions/setup-r-dependencies@v2
39-
with:
40-
pak-version: devel
41-
dependencies: '"hard"'
42-
cache: false
43-
extra-packages: |
44-
any::knitr
45-
any::rmarkdown
46-
any::correlation
47-
r-lib/pkgdown
48-
local::.
49-
needs: website
50-
51-
- name: Build site
52-
run: |
53-
options(crayon.enabled = TRUE)
54-
pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
55-
shell: Rscript {0}
9+
uses: easystats/workflows/.github/workflows/pkgdown-no-suggests.yaml@main

0 commit comments

Comments
 (0)