diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml
index 9471b00..82e2836 100644
--- a/.github/workflows/preview.yml
+++ b/.github/workflows/preview.yml
@@ -49,6 +49,7 @@ jobs:
- name: Determine Version
uses: gittools/actions/gitversion/execute@v0
+ id: gitversion
with:
useConfigFile: true
@@ -76,8 +77,9 @@ jobs:
dotnet pack
--configuration Release
--no-build
- --output $GITHUB_WORKSPACE/drop
- -p:PackageVersion=$GITVERSION_NUGETVERSION
+ --output ${{ github.workspace }}/drop
+ -p:PackageVersion=${{ steps.gitversion.outputs.nuGetVersion }}
+ -p:VersionPrefix=${{ steps.gitversion.outputs.nuGetVersion }}
- name: Publish Artifact
uses: actions/upload-artifact@v4
@@ -107,7 +109,7 @@ jobs:
- name: Publish to private feed
# if: startsWith(github.ref, 'refs/tags/')
run: >
- dotnet nuget push "$GITHUB_WORKSPACE/drop/*"
+ dotnet nuget push "${{ github.workspace }}/drop/*"
-k ${{ secrets.PRIVATE_FEED_API_KEY }}
--skip-duplicate
@@ -133,6 +135,6 @@ jobs:
- name: Publish to NuGet.org
# if: startsWith(github.ref, 'refs/tags/')
run: >
- dotnet nuget push "$GITHUB_WORKSPACE/drop/*"
+ dotnet nuget push "${{ github.workspace }}/drop/*"
-k ${{ secrets.NUGET_API_KEY }}
--skip-duplicate
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 84fedfa..1198691 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -46,6 +46,7 @@ jobs:
- name: Determine Version
uses: gittools/actions/gitversion/execute@v0
+ id: gitversion
with:
useConfigFile: true
@@ -76,8 +77,9 @@ jobs:
dotnet pack
--configuration Release
--no-build
- --output $GITHUB_WORKSPACE/drop
- -p:PackageVersion=$GITVERSION_NUGETVERSION
+ --output ${{ github.workspace }}/drop
+ -p:PackageVersion=${{ steps.gitversion.outputs.nuGetVersion }}
+ -p:VersionPrefix=${{ steps.gitversion.outputs.nuGetVersion }}
- name: Publish Artifact
uses: actions/upload-artifact@v4
@@ -88,6 +90,6 @@ jobs:
- name: Publish to NuGet.org
if: startsWith(github.ref, 'refs/tags/')
run: >
- dotnet nuget push "$GITHUB_WORKSPACE/drop/*"
+ dotnet nuget push "${{ github.workspace }}/drop/*"
-k ${{ secrets.NUGET_API_KEY }}
--skip-duplicate
diff --git a/src/Directory.Build.props b/src/Directory.Build.props
index 48ed808..0cec477 100644
--- a/src/Directory.Build.props
+++ b/src/Directory.Build.props
@@ -24,10 +24,6 @@
MIT
-
- $(GITVERSION_NUGETVERSION)
-
-
net6.0;net7.0;net8.0