Skip to content

Commit 2dbdc40

Browse files
authored
use single step to create draft release with artifacts (#396)
* use single step to create draft release with artifacts * customize generated release notes * add title to release create step
1 parent ba1f379 commit 2dbdc40

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

.github/release.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# .github/release.yml
2+
3+
changelog:
4+
exclude:
5+
labels:
6+
- ignore-for-release
7+
authors:
8+
- dependabot[bot]
9+
categories:
10+
- title: Major Changes
11+
labels:
12+
- breaking-change
13+
- title: Additional Features
14+
labels:
15+
- enhancement
16+
- title: Bug Fixes
17+
labels:
18+
- "*"

Jenkinsfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,12 @@ pipeline {
139139
steps {
140140
sh """
141141
echo '${env.GITHUB_API_TOKEN}' | ${GH_TOOL}/bin/gh auth login --with-token
142-
${GH_TOOL}/bin/gh release create ${TAG_NAME} --draft --generate-notes --repo https://github.com/oracle/weblogic-image-tool
143-
${GH_TOOL}/bin/gh release upload ${TAG_NAME} installer/target/imagetool.zip --repo https://github.com/oracle/weblogic-image-tool
142+
${GH_TOOL}/bin/gh release create ${TAG_NAME} \
143+
--draft \
144+
--generate-notes \
145+
--title 'WebLogic Image Tool ${TAG_NAME}' \
146+
--repo https://github.com/oracle/weblogic-image-tool \
147+
installer/target/imagetool.zip
144148
"""
145149
}
146150
}

0 commit comments

Comments
 (0)