Verified Commit 5204b8a3 authored by Cody L Marquart's avatar Cody L Marquart
Browse files

Updating CI release definition

[skip check][skip rhub][skip winbuilder]
parent 3cb4f204
Pipeline #49594 passed with stages
in 2 minutes and 37 seconds
......@@ -30,7 +30,7 @@ variables:
- Rscript -e 'install.packages("knitr")'
- Rscript -e 'install.packages("rmarkdown")'
- Rscript -e 'install.packages("testthat")'
- cd ..; R CMD build --resave-data --no-manual --log $PKG || true
- cd ..; R CMD build --resave-data --no-manual --log $PKG
.check_definition: &check_template
stage: check
artifacts:
......@@ -121,22 +121,30 @@ check:r-hub-windows-devel:
RHUB_PLATFORM: "windows-x86_64-devel"
<<: *rhub_definition
release:cran:
.release_definition: &release_definition
stage: release
image: egruw/r-ftp
image: $REG_URL/release:current
dependencies:
- check:r-release
only:
- tags
refs:
- tags
variables:
- $CI_COMMIT_TAG
except:
- branches
when: manual
- master
<<: *build_template
script:
- cat cran-comments.md
- Rscript -e "devtools:::upload_cran(devtools::as.package('.'), './archive/${PKG}_${VERSION}.tar.gz')"
tags:
- docker
- ls -al
- Rscript -e "devtools:::upload_cran(devtools::as.package('.'), './${PKG}_${VERSION}.tar.gz')"
allow_failure: false
release:cran-manual:
<<: *release_definition
when: manual
variables:
VERSION: $CI_COMMIT_TAG
test:r-release:
stage: test
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment