Skip to content

Commit 9d35e65

Browse files
committed
refactor: change bump-version script path and workflows
1 parent 9f8d629 commit 9d35e65

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

.github/workflows/publish.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
with:
1616
dotnet-version: "8.x"
1717
- run: dotnet restore
18-
- run: chmod +x version_bump.sh
19-
working-directory: src/CloudflareDnsync.Cli
20-
- run: ./version_bump.sh ${{ github.event.release.tag_name }}
21-
working-directory: src/CloudflareDnsync.Cli
18+
- run: chmod +x bump-version.sh
19+
working-directory: scripts
20+
- run: ./bump-version.sh ${{ github.event.release.tag_name }}
21+
working-directory: scripts
2222
- run: dotnet pack -c Release /p:PackageVersion=${{ github.event.release.tag_name }}
2323
working-directory: src/CloudflareDnsync.Cli
2424
- run: dotnet nuget push ./nupkg/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_PUBLISH_KEY }}
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
#!/bin/bash
1+
#!/bin/sh
22

33
VERSION=$1
4+
45
if [[ "$OSTYPE" == "darwin"* ]]; then
5-
sed -i "" "s/<Version>.*<\/Version>/<Version>$VERSION<\/Version>/" CloudflareDnsync.Cli.csproj
6+
sed -i "" "s/<Version>.*<\/Version>/<Version>$VERSION<\/Version>/" ../src/CloudflareDnsync.Cli/CloudflareDnsync.Cli.csproj
67
else
7-
sed -i "s/<Version>.*<\/Version>/<Version>$VERSION<\/Version>/" CloudflareDnsync.Cli.csproj
8+
sed -i "s/<Version>.*<\/Version>/<Version>$VERSION<\/Version>/" ../src/CloudflareDnsync.Cli/CloudflareDnsync.Cli.csproj
89
fi

0 commit comments

Comments
 (0)