Skip to content

Commit

Permalink
Add pkgdown
Browse files Browse the repository at this point in the history
  • Loading branch information
zsteinmetz committed Sep 5, 2023
1 parent cf6fedf commit 3911acb
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .Rbuildignore
Expand Up @@ -9,3 +9,6 @@
^CRAN-SUBMISSION$
^revdep$
^codecov\.yml$
^_pkgdown\.yml$
^docs$
^pkgdown$
48 changes: 48 additions & 0 deletions .github/workflows/pkgdown.yaml
@@ -0,0 +1,48 @@
# 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]
pull_request:
branches: [main]
release:
types: [published]
workflow_dispatch:

name: pkgdown

jobs:
pkgdown:
runs-on: ubuntu-latest
# Only restrict concurrency for non-PR jobs
concurrency:
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write
steps:
- uses: actions/checkout@v3

- 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 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/github-pages-deploy-action@v4.4.1
with:
clean: false
branch: gh-pages
folder: docs
6 changes: 3 additions & 3 deletions DESCRIPTION
@@ -1,8 +1,8 @@
Package: envalysis
Type: Package
Title: Miscellaneous Functions for Environmental Analyses
Version: 0.5.5
Date: 2023-08-07
Version: 0.6.0
Date: 2023-09-05
Authors@R: c(person("Zacharias", "Steinmetz", role = c("aut", "cre"),
email = "z.steinmetz@rptu.de",
comment = c(ORCID = "0000-0001-6675-5033")),
Expand All @@ -17,7 +17,7 @@ Description: Small toolbox for data analyses in environmental chemistry and
quantification (LOQs) according to German DIN 32645 (2008). texture() makes
it easy to estimate soil particle size distributions from hydrometer
measurements (ASTM D422-63, 2007).
URL: https://github.com/zsteinmetz/envalysis
URL: https://github.com/zsteinmetz/envalysis, https://zsteinmetz.de/envalysis/
BugReports: https://github.com/zsteinmetz/envalysis/issues
Encoding: UTF-8
License: GPL (>= 3)
Expand Down
3 changes: 3 additions & 0 deletions _pkgdown.yml
@@ -0,0 +1,3 @@
url: http://zsteinmetz.de/envalysis/
template:
bootstrap: 5

0 comments on commit 3911acb

Please sign in to comment.