Skip to content

Commit eb56558

Browse files
authored
Add website to DESCRIPTION + update pkgdown action (#75)
* Add website to DESCRIPTION * `usethis::use_github_action("pkgdown")`
1 parent 77450cc commit eb56558

File tree

2 files changed

+27
-12
lines changed

2 files changed

+27
-12
lines changed

.github/workflows/pkgdown.yaml

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,50 @@
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
22
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
33
on:
44
push:
55
branches: [main, master]
6+
pull_request:
7+
branches: [main, master]
68
release:
79
types: [published]
810
workflow_dispatch:
911

1012
name: pkgdown
1113

14+
permissions: read-all
15+
1216
jobs:
1317
pkgdown:
1418
runs-on: ubuntu-latest
19+
# Only restrict concurrency for non-PR jobs
20+
concurrency:
21+
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
1522
env:
1623
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
24+
permissions:
25+
contents: write
1726
steps:
18-
- uses: actions/checkout@v2
27+
- uses: actions/checkout@v4
1928

20-
- uses: r-lib/actions/setup-pandoc@v1
29+
- uses: r-lib/actions/setup-pandoc@v2
2130

22-
- uses: r-lib/actions/setup-r@v1
31+
- uses: r-lib/actions/setup-r@v2
2332
with:
2433
use-public-rspm: true
2534

26-
- uses: r-lib/actions/setup-r-dependencies@v1
35+
- uses: r-lib/actions/setup-r-dependencies@v2
2736
with:
28-
extra-packages: pkgdown
37+
extra-packages: any::pkgdown, local::.
2938
needs: website
3039

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)'
40+
- name: Build site
41+
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
42+
shell: Rscript {0}
43+
44+
- name: Deploy to GitHub pages 🚀
45+
if: github.event_name != 'pull_request'
46+
uses: JamesIves/[email protected]
47+
with:
48+
clean: false
49+
branch: gh-pages
50+
folder: docs

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Description: Build a Dockerfile straight from your R session.
1515
'dockerfiler' allows you to create step by step a Dockerfile, and
1616
provide convenient tools to wrap R code inside this Dockerfile.
1717
License: MIT + file LICENSE
18-
URL: https://github.com/ThinkR-open/dockerfiler
18+
URL: https://thinkr-open.github.io/dockerfiler/, https://github.com/ThinkR-open/dockerfiler
1919
BugReports: https://github.com/ThinkR-open/dockerfiler/issues
2020
Imports:
2121
attempt (>= 0.3.1),

0 commit comments

Comments
 (0)