Skip to content

Fix issue #58

Fix issue #58 #16

Workflow file for this run

# READ-ONLY FILE
#
# Original file resides in r-hyperspec/pkg-skelton.
# DO NOT EDIT in any other repo as these changes will be overwritten.
# Edit at r-hyperspec/pkg-skelton, then push there and
# this file will be deployed to the other repos.
#
on:
push:
branches:
- release
- main
- master
- develop
# - auto-update
- auto-update-test
tags: ['*']
name: Website (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 }}
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
r-version: 'release'
- uses: r-lib/actions/setup-r-dependencies@v2
with:
working-directory: ./pkg/unmixR
extra-packages: any::pkgdown, local::., any::devtools
needs: website
- name: Roxygenize
working-directory: ./pkg/unmixR
# The vignettes will be built in step "Deploy package"
run: |
devtools::document(roclets = c('rd', 'collate', 'namespace'))
shell: Rscript {0}
- name: Install package
run: R CMD INSTALL ./pkg/unmixR
- name: Deploy package
working-directory: ./pkg/unmixR
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)'