Skip to content

Commit e960b8c

Browse files
committed
- fix ci pipeline
1 parent e44b861 commit e960b8c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/release-ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ jobs:
6868
- name: Set package version
6969
id: pkg_version
7070
run: |
71-
if [[ -z "${{ steps.gitversion.outputs.preReleaseTag }}" ]]; then
72-
echo "version=${{ steps.gitversion.outputs.majorMinorPatch }}" >> $GITHUB_OUTPUT
71+
if [[ "${{ github.ref }}" == refs/tags/v* ]]; then
72+
echo "version=$(echo '${{ github.ref_name }}' | sed 's/^v//')" >> $GITHUB_OUTPUT
7373
else
7474
echo "version=${{ steps.gitversion.outputs.semVer }}" >> $GITHUB_OUTPUT
7575
fi
@@ -166,7 +166,7 @@ jobs:
166166
--skip-duplicate
167167
168168
- name: Publish to NuGet.org
169-
if: steps.gitversion.outputs.preReleaseTag == ''
169+
if: startsWith(github.ref, 'refs/tags/')
170170
run: |
171171
dotnet nuget push "./artifacts/*.nupkg" \
172172
--api-key ${{ secrets.NUGET_API_KEY }} \

0 commit comments

Comments
 (0)