Skip to content

Commit

Permalink
Merge pull request #21 from Appsilon/add-pkgdown-ci
Browse files Browse the repository at this point in the history
Add pkgdown ci
  • Loading branch information
TymekAppsilon authored Feb 11, 2022
2 parents 92fb4a1 + ab7c874 commit 45f2757
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 1 deletion.
39 changes: 39 additions & 0 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches:
- main
workflow_dispatch:

name: pkgdown

jobs:
pkgdown:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2

- uses: r-lib/actions/setup-pandoc@v2

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::pkgdown, local::.
needs: website

- name: Build site
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
shell: Rscript {0}

- name: Deploy to GitHub pages 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: .
clean: false
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Authors@R:
person(family = "Appsilon Sp. z o.o.", role = "cph")
)
Description: A framework that supports creating and extending enterprise Shiny applications using best practices.
URL: https://github.com/Appsilon/rhino
URL: https://appsilon.github.io/rhino, https://github.com/Appsilon/rhino
BugReports: https://github.com/Appsilon/rhino/issues
License: MIT + file LICENSE
Encoding: UTF-8
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,7 @@ Alternatively, the package can be installed, and then tested with `testthat::tes

#### Linter
Linter can be run using either `lintr::lint_package()` or `devtools::lint()`.

#### `pkgdown` site
To create a `pkgdown` site locally run either `pkgdown::build_site()` or `devtools::build_site()`.
If built successfully, the website will be in `docs` directory.

0 comments on commit 45f2757

Please sign in to comment.