Skip to content

Commit 43a5077

Browse files
committed
added release action new
Signed-off-by: kumarabd <[email protected]>
1 parent 05b7f06 commit 43a5077

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

.github/workflows/build-and-publish.yaml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,15 @@ jobs:
1818
steps:
1919
- name: Create Release
2020
id: create_release
21-
uses: actions/create-release@v1
22-
env:
23-
GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} # This token is provided by Actions, you do not need to create your own token
21+
uses: ncipollo/release-action@v1
22+
if: startsWith(github.ref, 'refs/tags/') && success()
2423
with:
25-
tag_name: ${{ github.event.inputs.version }}
26-
release_name: GetNighthawk Release for ${{ github.event.inputs.version }}
27-
body: |
28-
Changes in this Release
29-
- None
30-
draft: false
31-
prerelease: false
24+
token: ${{ secrets.GH_ACCESS_TOKEN }}
25+
tag: ${{ github.event.inputs.version }}
26+
name: GetNighthawk ${{ github.event.inputs.version }}
27+
allowUpdates: true
28+
omitNameDuringUpdate: true
29+
replacesArtifacts: true
3230
build-and-publish:
3331
name: build and publish packages
3432
needs: [release]

0 commit comments

Comments
 (0)