Skip to content

Commit b6e594b

Browse files
committed
Instructions for creating pre-releases
1 parent 17cc9d4 commit b6e594b

1 file changed

Lines changed: 16 additions & 3 deletions

File tree

DEVELOPMENT.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,30 @@ cd -
1414

1515
RELEASE_SCRIPT="$BASE_DIR/scijava-scripts/release-version.sh"
1616

17-
$RELEASE_SCRIPT --skip-push --skip-gpg --skip-license-update
17+
############## ONLY FOR PRE-RELEASES ##############
18+
PRE_RELEASE="1.5.0.a17" # <-- adjust this to the desired version
19+
EXTRA_FLAGS="--skip-branch-check --skip-version-check $PRE_RELEASE"
20+
############## ONLY FOR PRE-RELEASES ##############
21+
22+
$RELEASE_SCRIPT --skip-push --skip-gpg --skip-license-update $EXTRA_FLAGS
1823
```
1924

20-
**IMPORTANT**: after the release has been built, the corresponding tag needs to
21-
be pushed to github, e.g. like this:
25+
**IMPORTANT 1**: after the release has been built, the corresponding tag needs
26+
to be pushed to github, e.g. like this:
2227

2328
```bash
2429
RELEASE_TAG=$(git tag -l "python-imcflibs-*" | tail -n 1)
2530
git push origin $RELEASE_TAG
2631
```
2732

33+
**IMPORTANT 2**: in case a **pre-releaes** was created, the last commit needs to
34+
be discarded as the _release-script_ places a wrong version / snapshot
35+
combination in the `pom.xml`:
36+
37+
```bash
38+
git reset --hard HEAD~1
39+
```
40+
2841
## Build & Deploy with Maven using VS Code
2942

3043
Building and deploying the package can be greatly simplified using "tasks" in

0 commit comments

Comments
 (0)