Skip to content

Commit

Permalink
fix: version bump shell script fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
alperensert committed Apr 9, 2024
1 parent 4fea618 commit 5f97eb7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ jobs:
dotnet-version: "8.x"
- run: dotnet restore
- run: chmod +x version_bump.sh
working-directory: src/CloudflareDnsync.Cli
- run: ./version_bump.sh ${{ github.event.release.tag_name }}
working-directory: src/CloudflareDnsync.Cli
- run: dotnet pack -c Release /p:PackageVersion=${{ github.event.release.tag_name }}
working-directory: src/CloudflareDnsync.Cli
- run: dotnet nuget push ./nupkg/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_PUBLISH_KEY }}
Expand Down
2 changes: 1 addition & 1 deletion release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"bump-minor-pre-major": true,
"bump-patch-for-minor-pre-major": true,
"changelog-path": "CHANGELOG.md",
"include-v-in-tag": true,
"include-v-in-tag": false,
"packages": {
".": {
"release-type": "simple",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash

VERSION=$1
sed -i "" "s/<Version>.*<\/Version>/<Version>$VERSION<\/Version>/" src/CloudflareDnsync.Cli/CloudflareDnsync.Cli.csproj
sed -i "" "s/<Version>.*<\/Version>/<Version>$VERSION<\/Version>/" ./CloudflareDnsync.Cli.csproj

0 comments on commit 5f97eb7

Please sign in to comment.