forked from remindmodel/remind
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1e6809b
commit 062a01d
Showing
2 changed files
with
21 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
# This script is part of a longer workflow described here | ||
# https://gitlab.pik-potsdam.de/rse/rse-internal/-/wikis/PublishModel | ||
# This script is part of a longer workflow. | ||
# Before running this script please perform the steps described here | ||
# https://gitlab.pik-potsdam.de/REMIND/remind-rse/-/wikis/How-to-create-a-REMIND-release | ||
|
||
# in your fork switch to temporary branch (e.g. release-candidate) and | ||
# execute this script in the main folder Rscript scripts/utils/release.R x.y.z | ||
|
||
release <- function(newVersion) { | ||
if (Sys.which("sbatch") == "") { | ||
|
@@ -59,15 +63,21 @@ release <- function(newVersion) { | |
cfg$input <- cfg$input[cfg$stopOnMissing] | ||
gms::publish_data(cfg,target = "[email protected]:/remind/public") | ||
|
||
message("Please perform the two following steps manually:\n", | ||
"1. CHANGELOG.md: sort lines in each category: changed, added, removed, fixed; remove empty categories\n", | ||
message("If not already done please perform the two following steps manually now:\n", | ||
"1. CHANGELOG.md: sort lines in each category: input data/calibration, changed, added, removed, fixed; remove empty categories\n", | ||
"2. git add -p\n", | ||
"--> When done press ENTER to commit, push and create PR") | ||
gms::getLine() | ||
|
||
message("Committing and pushing changes") | ||
gert::git_commit(paste("remind release", newVersion)) | ||
gert::git_push() | ||
|
||
message("Creating tag") | ||
tag <- paste0("v",newVersion) | ||
git_tag_create(name = tag, message = "new tag", repo = ".") | ||
git_tag_push(name = tag, repo = ".") | ||
|
||
message("Creating a PR on GitHub") | ||
# gh pr create --help | ||
# --base branch The branch into which you want your code merged | ||
|