Skip to content

Commit e4ba540

Browse files
committed
Trial run on versioning
1 parent f8f8c32 commit e4ba540

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

.github/workflows/nuget.yaml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,26 @@ jobs:
1212
BUILD_CONFIG: 'Release'
1313

1414
steps:
15-
- name: Dump env
16-
run: env | sort
17-
- name: Dump GitHub context
18-
env:
19-
GITHUB_CONTEXT: ${{ toJson(github) }}
20-
run: echo "$GITHUB_CONTEXT"
15+
# - name: Dump env
16+
# run: env | sort
17+
# - name: Dump GitHub context
18+
# env:
19+
# GITHUB_CONTEXT: ${{ toJson(github) }}
20+
# run: echo "$GITHUB_CONTEXT"
2121
- uses: actions/checkout@v3
2222
- name: Setup .NET
2323
uses: actions/setup-dotnet@v3
2424
with:
2525
dotnet-version: 6.0.x
26-
- name: Set VERSION variable from tag
27-
run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV
2826
- name: Build
2927
working-directory: ./src
30-
run: dotnet build /p:Version=${VERSION}
28+
run: dotnet build /p:Version=${{ github.event.release.tag_name }}
3129
- name: Test
3230
working-directory: ./src
33-
run: dotnet test /p:Version=${VERSION} --no-build
31+
run: dotnet test /p:Version=${{ github.event.release.tag_name }} --no-build
3432
- name: Pack
3533
working-directory: ./src
36-
run: dotnet pack /p:Version=${VERSION} --no-build --output .
34+
run: dotnet pack /p:Version=${{ github.event.release.tag_name }} --no-build --output .
3735
- uses: actions/upload-artifact@v3
3836
if: success() || failure()
3937
with:

0 commit comments

Comments
 (0)