Skip to content

Commit 075c214

Browse files
committed
build: run dev/02_misc.R
1 parent cf30c26 commit 075c214

2 files changed

Lines changed: 10 additions & 54 deletions

File tree

.github/workflows/version-tag-release.yaml

Lines changed: 9 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -5,58 +5,14 @@ on:
55
tags:
66
- 'v*'
77

8-
permissions:
9-
contents: write
8+
workflow_dispatch:
9+
inputs:
10+
tag:
11+
description: 'Git tag to build (example: v0.4.0)'
12+
required: true
1013

1114
jobs:
12-
build-and-release:
13-
runs-on: windows-latest
14-
15-
env:
16-
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
17-
18-
steps:
19-
- name: Checkout repository
20-
uses: actions/checkout@v4
21-
22-
- name: Setup R
23-
uses: r-lib/actions/setup-r@v2
24-
with:
25-
r-version: 'release'
26-
27-
- name: Setup Pandoc
28-
uses: r-lib/actions/setup-pandoc@v2
29-
30-
- name: Install dependencies
31-
uses: r-lib/actions/setup-r-dependencies@v2
32-
with:
33-
extra-packages: |
34-
any::devtools
35-
any::pkgbuild
36-
needs: check
37-
38-
- name: Build source package
39-
shell: pwsh
40-
run: |
41-
Rscript -e "pkgbuild::build(path = '.')"
42-
43-
- name: Build Windows binary
44-
shell: pwsh
45-
run: |
46-
Rscript -e "pkgbuild::build(binary = TRUE, path = '.')"
47-
48-
- name: Show built files
49-
shell: pwsh
50-
run: |
51-
Get-ChildItem
52-
53-
- name: Create GitHub Release
54-
uses: softprops/action-gh-release@v2
55-
with:
56-
tag_name: ${{ github.ref_name }}
57-
name: Release ${{ github.ref_name }}
58-
files: |
59-
*.zip
60-
*.tar.gz
61-
env:
62-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15+
release:
16+
uses: FinnishCancerRegistry/github-actions/.github/workflows/version-tag-release.yaml@master
17+
with:
18+
tag: ${{ github.event.inputs.tag || github.ref_name }}

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ VignetteBuilder:
1818
knitr
1919
Remotes:
2020
github::FinnishCancerRegistry/dbc@release
21+
Config/roxygen2/version: 8.0.0
2122
Config/testthat/edition: 3
2223
Encoding: UTF-8
2324
LazyData: true
2425
Roxygen: list(markdown = TRUE)
25-
Config/roxygen2/version: 8.0.0

0 commit comments

Comments
 (0)