diff --git a/.github/workflows/nuget-publish.yml b/.github/workflows/nuget-publish.yml index 62a9843..81fced4 100644 --- a/.github/workflows/nuget-publish.yml +++ b/.github/workflows/nuget-publish.yml @@ -30,11 +30,12 @@ jobs: run: dotnet build ${{ env.PROJECT_PATH }} --no-restore --configuration Release - name: 'Get Version' - id: version - uses: battila7/get-version-action@v2 + uses: Im-Fran/version-from-tag-action@v1.0.3 + with: + remove-first-character: 'v' - name: 'Pack project' - run: dotnet pack ${{ env.PROJECT_PATH }} --no-restore --no-build --configuration Release --include-symbols -p:SymbolPackageFormat=snupkg -p:PackageVersion=${{ steps.version.outputs.version-without-v }} --output ${{ env.PACKAGE_OUTPUT_DIRECTORY }} + run: dotnet pack ${{ env.PROJECT_PATH }} --no-restore --no-build --configuration Release --include-symbols -p:SymbolPackageFormat=snupkg -p:PackageVersion=${{ env.VERSION }} --output ${{ env.PACKAGE_OUTPUT_DIRECTORY }} - name: 'Push package' run: dotnet nuget push ${{ env.PACKAGE_OUTPUT_DIRECTORY }}\*.nupkg -k ${{ secrets.NUGET_AUTH_TOKEN }} -s ${{ env.NUGET_SOURCE_URL }}