Skip to content

Commit 26fa2e7

Browse files
committed
Output package version
1 parent dd507db commit 26fa2e7

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
version="${version#v}"
3434
echo "PACKAGE_VERSION=$version" >> $GITHUB_ENV
3535
36-
- name: Validate version format
36+
- name: Validate version format ${{ env.PACKAGE_VERSION }}
3737
run: |
3838
if ! [[ "$PACKAGE_VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+(-preview[0-9]+)?$ ]]; then
3939
echo "❌ Invalid version format: $PACKAGE_VERSION"
@@ -54,15 +54,15 @@ jobs:
5454
- name: Restore
5555
run: dotnet restore
5656

57-
- name: Build
57+
- name: Build ${{ env.PACKAGE_VERSION }}
5858
run: dotnet build -c Release /p:Version=${PACKAGE_VERSION}
5959

60-
- name: Test
60+
- name: Test ${{ env.PACKAGE_VERSION }}
6161
run: dotnet test -c Release /p:Version=${PACKAGE_VERSION} --no-restore --verbosity normal
6262

63-
- name: Pack
63+
- name: Pack ${{ env.PACKAGE_VERSION }}
6464
run: dotnet pack -c Release /p:Version=${PACKAGE_VERSION} --no-restore --output .
6565

66-
- name: Push
66+
- name: Push ${{ env.PACKAGE_VERSION }}
6767
if: ${{ github.event_name != 'workflow_dispatch' || inputs.pushEnabled }}
6868
run: dotnet nuget push OldBit.Beep.${PACKAGE_VERSION}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_KEY }}

0 commit comments

Comments
 (0)