Skip to content

Commit a34e45c

Browse files
authored
Update nuget-pack-push.yml
1 parent c625a90 commit a34e45c

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed
Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
name: CD
22

33
on:
4-
release:
5-
types:
6-
- published
7-
- created
8-
- edited
9-
- prereleased
4+
push:
5+
tags:
6+
- 'v*.*.*'
107

118
env:
129
VERSION: 0.0.0
@@ -21,5 +18,6 @@ jobs:
2118
- name: Setting environment variables
2219
run: |
2320
echo "::set-env name=COMMIT::$GITHUB_SHA"
24-
echo "::set-env name=VERSION::${GITHUB_REF/refs\/tags\//}"
21+
echo "::set-env name=VERSION::${GITHUB_REF/refs\/tags\//}"
2522
echo Version $VERSION - Branch $BRANCH - Commit $COMMIT
23+
- run: echo ::set-env name=RELEASE_VERSION::$(echo ${GITHUB_REF:10})

0 commit comments

Comments
 (0)