Skip to content
This repository was archived by the owner on Sep 28, 2020. It is now read-only.

Commit bcc48f1

Browse files
committed
improve release workflow
1 parent c051173 commit bcc48f1

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/node.js.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,21 @@ jobs:
5656
runs-on: ubuntu-latest
5757
needs: [build_windows, build_linux]
5858

59+
60+
5961
steps:
62+
- name: Extract branch name
63+
shell: bash
64+
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
65+
id: extract_branch
66+
6067
- name: Delete tag and release
6168
uses: dev-drprasad/delete-tag-and-release@v0.1.2
6269
env:
6370
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6471
with:
65-
tag_name: dev-tag-release
72+
tag_name: ${{ steps.extract_branch.outputs.branch }}-tag-release
73+
continue-on-error: true
6674

6775
- uses: actions/download-artifact@v2
6876
with:
@@ -78,7 +86,7 @@ jobs:
7886
env:
7987
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8088
with:
81-
tag_name: dev-tag-release
89+
tag_name: ${{ steps.extract_branch.outputs.branch }}-tag-release
8290
prerelease: true
8391
files: |
8492
terminusdb-desktop-3.0.0.AppImage

0 commit comments

Comments
 (0)