Skip to content

Ignore more build files and sort .Rbuildignore #115

Ignore more build files and sort .Rbuildignore

Ignore more build files and sort .Rbuildignore #115

Workflow file for this run

name: Dev build
on:
push:
branches: [main]
workflow_dispatch:
jobs:
build:
name: Dev build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-r-dependencies@v2
with:
dependencies: NA
extra-packages: any::devtools
- name: Build package
run: |
# Workaround for bug #1070 in roxygen2 7.1.0
writeLines('# Generated by roxygen2: do not edit by hand', 'NAMESPACE')
devtools::document()
shell: Rscript {0}
- name: Commit development build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config user.name klmr
git config user.email klmr@users.noreply.github.com
git remote set-url --push origin https://klmr:$GITHUB_TOKEN@github.com/klmr/box.git
git branch -D build 2>/dev/null || :
git checkout -b build
git add --force NAMESPACE man
git commit -m 'Create a development build'
git push --force origin build