Skip to content

Commit ae74af2

Browse files
committed
add pkgdown
Signed-off-by: Peter Solymos <[email protected]>
1 parent bc7ae51 commit ae74af2

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

pkgdown/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM ghcr.io/analythium/actions:latest
2+
COPY entrypoint.sh /entrypoint.sh
3+
ENTRYPOINT ["/entrypoint.sh"]

pkgdown/action.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: 'Analythium Actions: Build pkgdown site'
2+
description: 'Check an R package'
3+
author: 'Analythium'
4+
inputs:
5+
who-to-greet: # id of input
6+
description: 'Who to greet'
7+
required: true
8+
default: 'World'
9+
outputs:
10+
time: # id of output
11+
description: 'The time we greeted you'
12+
runs:
13+
using: 'docker'
14+
image: 'Dockerfile'
15+
args:
16+
- ${{ inputs.who-to-greet }}

pkgdown/entrypoint.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/sh -l
2+
3+
# Dont forget <https://docs.github.com/en/actions/creating-actions/creating-a-docker-container-action>
4+
# $ git add entrypoint.sh
5+
# $ git update-index --chmod=+x entrypoint.sh
6+
7+
echo "\n***\nTHIS IS USING THE PKGDOWN DIR\n***\n"
8+
9+
deps-cli all
10+
Rscript -e 'devtools::check()'
11+
echo "\n***\n---PKGDOWN---\n***\n"
12+
Rscript -e 'pkgdown::build_site_github_pages(install=TRUE)'

0 commit comments

Comments
 (0)