Skip to content

Commit 8f918b0

Browse files
authored
Update release.yml
1 parent 98696a4 commit 8f918b0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ jobs:
2525
echo "MAJOR=$(cut -d. -f1 <<<"${PROJECT_VERSION}")" >> $GITHUB_ENV
2626
echo "MINOR=$(cut -d. -f2 <<<"${PROJECT_VERSION}")" >> $GITHUB_ENV
2727
28+
- name: Create GitHub Release
29+
uses: open-resource-discovery/github-release@main
30+
with:
31+
tag-template: "v<version>"
32+
version: ${{ env.MAJOR }}.${{ env.MINOR }}.0
33+
2834
- name: Update project release version
2935
run: |
3036
mvn versions:set -DnewVersion="${MAJOR}.${MINOR}.0"
@@ -36,12 +42,6 @@ jobs:
3642
mvn --batch-mode deploy -f ./models/pom.xml
3743
mvn --batch-mode deploy -f ./annotations/pom.xml
3844
39-
- name: Create GitHub Release
40-
uses: open-resource-discovery/github-release@main
41-
with:
42-
tag-template: "v<version>"
43-
version: ${{ env.MAJOR }}.${{ env.MINOR }}.0
44-
4545
- name: Update project version for next development iteration
4646
run: |
4747
mvn versions:set -DnewVersion="${MAJOR}.$(( MINOR + 1 )).0-SNAPSHOT"

0 commit comments

Comments
 (0)