File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
1114jobs :
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 }}
Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ VignetteBuilder:
1818 knitr
1919Remotes:
2020 github::FinnishCancerRegistry/dbc@release
21+ Config/roxygen2/version: 8.0.0
2122Config/testthat/edition: 3
2223Encoding: UTF-8
2324LazyData: true
2425Roxygen: list(markdown = TRUE)
25- Config/roxygen2/version: 8.0.0
You can’t perform that action at this time.
0 commit comments