22
22
23
23
stages :
24
24
- name : Build-Test
25
+ - name : Semantic-Release
26
+ if : branch = main AND type = push AND fork = false
25
27
# Uncomment these stages when you're ready to use them.
26
- # - name: Semantic-Release
27
- # if: branch = main AND type = push AND fork = false
28
28
# - name: Publish-Release
29
29
# if: tag IS present
30
30
@@ -40,21 +40,20 @@ jobs:
40
40
- build/setMavenVersion.sh
41
41
- mvn verify -fae -DskipITs $MVN_ARGS
42
42
43
- # Uncomment these stages when you're ready to use them.
44
- # - stage: Semantic-Release
45
- # install:
46
- # - sudo apt-get install python
47
- # - nvm install 12
48
- # - npm install -g [email protected]
49
- # - pip install --user bump2version
50
- # - npm install @semantic-release/changelog
51
- # - npm install @semantic-release/exec
52
- # - npm install @semantic-release/git
53
- # - npm install @semantic-release/github
54
- # script:
55
- # - npx semantic-release
56
- # after_success:
57
- # - echo "Semantic release has successfully created a new tagged-release"
43
+ - stage : Semantic-Release
44
+ install :
45
+ - sudo apt-get install python
46
+ - nvm install 12
47
+ -
npm install -g [email protected]
48
+ - pip install --user bump2version
49
+ - npm install @semantic-release/changelog
50
+ - npm install @semantic-release/exec
51
+ - npm install @semantic-release/git
52
+ - npm install @semantic-release/github
53
+ script :
54
+ - npx semantic-release
55
+ after_success :
56
+ - echo "Semantic release has successfully created a new tagged-release"
58
57
#
59
58
# - stage: Publish-Release
60
59
# jdk: openjdk8
0 commit comments