Skip to content

Commit 84d141c

Browse files
authored
Update publish.yml
1 parent 957e2ed commit 84d141c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
${{github.workspace}}/Packages/*.nupkg
3838
${{github.workspace}}/Packages/*.snupkg
3939
- name: Extract Version
40+
id: extract_version
4041
uses: mavrosxristoforos/[email protected]
4142
with:
4243
xml-file: '{{github.workspace}}/src/SpanExtensions.csproj'
@@ -47,10 +48,10 @@ jobs:
4748
run: curl -o release-notes.md https://drive.google.com/uc?export=download&id=1LdP8rvPZ9ra4mc4vmv3smcDwVD96Zwn8
4849
- name: Create Tag
4950
run: |
50-
git tag -a ${{ env.Version }} -m"${{ env.Version }}"
51-
git push origin ${{ env.Version }}
51+
git tag -a ${{ env.VERSION }} -m"${{ env.VERSION }}"
52+
git push origin ${{ env.VERSION }}
5253
- name: Create Release
53-
run: gh release create ${{ env.Version }} --title ${{ env.Version }} --notes-file release-notes.md ${{github.workspace}}/Packages/*.nupkg ${{github.workspace}}/Packages/*.snupkg
54+
run: gh release create ${{ env.VERSION }} --title ${{ env.VERSION }} --notes-file release-notes.md ${{github.workspace}}/Packages/*.nupkg ${{github.workspace}}/Packages/*.snupkg
5455
env:
5556
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5657
- name: Push To Nuget

0 commit comments

Comments
 (0)