Skip to content

Commit 7201c81

Browse files
committed
Stuffed up the package versioning
1 parent 09550ad commit 7201c81

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,13 @@ jobs:
3333
run: dotnet restore
3434
- name: Build
3535
run: dotnet build --no-restore --configuration ${{ env.DOTNET_CONFIGURATION }}
36+
37+
- name: Get git tag
38+
id: git_tag
39+
run: "echo tag=${GITHUB_REF#refs/tags/v} >> $GITHUB_OUTPUT"
40+
3641
- name: Publish NuGet package
37-
run: dotnet pack --no-build -c ${{ env.DOTNET_CONFIGURATION }} -o ${{ env.OUTPUT_PATH }} -p:VersionSuffix='alpha.${{ github.run_number }}'
42+
run: dotnet pack --no-build -c ${{ env.DOTNET_CONFIGURATION }} -o ${{ env.OUTPUT_PATH }} -p:PackageVersion=${{ steps.git_tag.outputs.tag }} /p:ReleaseBuild=true
3843

3944
- name: Publish release packages
4045
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)