Skip to content

Commit ac3c292

Browse files
authored
Merge pull request #4 from eclipse-esmf/fix/creating-release-action
Update tagged_release.yml
2 parents d6d73e5 + 5d582e4 commit ac3c292

File tree

1 file changed

+22
-14
lines changed

1 file changed

+22
-14
lines changed

.github/workflows/tagged_release.yml

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -70,22 +70,30 @@ jobs:
7070
- name: Pack Project as tgz
7171
run: npm pack
7272

73-
- name: Create GitHub release
74-
if: ${{ (!contains( github.ref, '-rc' )) }}
75-
uses: svenstaro/upload-release-action@latest
73+
- name: "Create Github release (full)"
74+
if: ${{ !contains( github.event.inputs.release_version, '-rc' ) }}
75+
uses: softprops/action-gh-release@v1
76+
id: esmf_sdk_js_release
7677
with:
77-
overwrite: true
78+
body: "Release version ${{ github.event.inputs.release_version }}."
79+
tag_name: v${{ github.event.inputs.release_version }}
80+
target_commitish: ${{ env.release_branch_name }}
81+
draft: false
7882
prerelease: false
79-
repo_token: ${{ secrets.GITHUB_TOKEN }}
80-
file: esmf-semantic-ui-schematics-${{ github.event.inputs.release_version }}.tgz
81-
tag: v${{ github.event.inputs.release_version }}
83+
files: esmf-semantic-ui-schematics-${{ github.event.inputs.release_version }}.tgz
84+
env:
85+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8286

83-
- name: Create GitHub pre-release
84-
if: ${{ (contains( github.ref, '-rc' )) }}
85-
uses: svenstaro/upload-release-action@latest
87+
- name: "Create Github release (milestone)"
88+
if: contains( github.event.inputs.release_version, '-rc' )
89+
uses: softprops/action-gh-release@v1
90+
id: sds_sdk_js_release
8691
with:
87-
overwrite: true
92+
body: "Release version ${{ github.event.inputs.release_version }}."
93+
tag_name: v${{ github.event.inputs.release_version }}
94+
target_commitish: ${{ env.release_branch_name }}
95+
draft: false
8896
prerelease: true
89-
repo_token: ${{ secrets.GITHUB_TOKEN }}
90-
file: esmf-semantic-ui-schematics-${{ github.event.inputs.release_version }}.tgz
91-
tag: v${{ github.event.inputs.release_version }}
97+
files: esmf-semantic-ui-schematics-${{ github.event.inputs.release_version }}.tgz
98+
env:
99+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)