File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 1919 run : dotnet --list-sdks
2020 - name : Check .NET runtimes
2121 run : dotnet --list-runtimes
22+
23+ - name : get version from tag
24+ id : get_version
25+ run : |
26+ realversion="${GITHUB_REF/refs\/tags\//}"
27+ realversion="${realversion//v/}"
28+ echo "VERSION=$realversion" >> $GITHUB_OUTPUT
29+
30+ - name : Update version in csproj
31+ run : |
32+ VERSION=${{ steps.get_version.outputs.VERSION }}
33+ echo "Setting version to $VERSION"
34+
35+ # Update the version in the NRedisStack.csproj file
36+ sed -i "s|<Version>.*</Version>|<Version>$VERSION</Version>|" ./src/NRedisStack/NRedisStack.csproj
37+ sed -i "s|<ReleaseVersion>.*</ReleaseVersion>|<ReleaseVersion>$VERSION</ReleaseVersion>|" ./src/NRedisStack/NRedisStack.csproj
38+ sed -i "s|<PackageVersion>.*</PackageVersion>|<PackageVersion>$VERSION</PackageVersion>|" ./src/NRedisStack/NRedisStack.csproj
39+ cat ./src/NRedisStack/NRedisStack.csproj
40+
2241 - name : Build
2342 run : dotnet pack -c Release --output .
2443 - name : Publish
You can’t perform that action at this time.
0 commit comments