Skip to content

Commit 9ffb038

Browse files
committed
Pack version from tag
1 parent 31f6d77 commit 9ffb038

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/pack.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ jobs:
1616
dotnet-version: '10.0.x'
1717
dotnet-quality: 'preview'
1818
- name: Pack
19-
run: dotnet pack -c Release -o ./nupkg src/ProfileTool/ProfileTool.csproj
19+
run: |
20+
VERSION="${GITHUB_REF_NAME#v}"
21+
dotnet pack -c Release -o ./nupkg src/ProfileTool/ProfileTool.csproj -p:Version="$VERSION"
2022
- name: Publish to NuGet
2123
env:
2224
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}

0 commit comments

Comments
 (0)