Skip to content

Commit d837adb

Browse files
committed
updated release workflow with new tags to try and fix RELEASE_VERSION issue
1 parent 00fdb2b commit d837adb

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/release.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@ jobs:
1717
dotnet-version: 8.0.x
1818
- name: Get latest tag version
1919
id: vars
20-
run: echo "tag=`echo $(git describe --tags --abbrev=0)`" >> $GITHUB_OUTPUT
20+
run: echo "tag=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
2121
- name: Package
22-
env:
23-
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
24-
run: |
25-
echo $RELEASE_VERSION
26-
dotnet pack -p:PackageVersion=$RELEASE_VERSION
27-
dotnet nuget push DotPrompt.Sql/nupkg/*.nupkg -k ${{ secrets.AZURECODER_NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate
22+
env:
23+
RELEASE_VERSION: ${{ env.tag }}
24+
run: |
25+
echo "Release version: $RELEASE_VERSION"
26+
dotnet pack -p:PackageVersion=$RELEASE_VERSION
27+
dotnet nuget push DotPrompt.Sql/nupkg/*.nupkg -k ${{ secrets.AZURECODER_NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate
28+

0 commit comments

Comments
 (0)