-
-
Notifications
You must be signed in to change notification settings - Fork 47
41 lines (34 loc) · 1.09 KB
/
build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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