File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 4
4
<OutputType >Exe</OutputType >
5
5
<ImplicitUsings >enable</ImplicitUsings >
6
6
<Nullable >enable</Nullable >
7
- <Version >0.1.6 </Version >
7
+ <Version >0.1.7 </Version >
8
8
<PackageLicenseFile >LICENSE</PackageLicenseFile >
9
9
<PackageReadmeFile >readme.md</PackageReadmeFile >
10
10
<PackageType >DotnetTool</PackageType >
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ set -eux
3
+
4
+ # Assert that current branch is main
5
+ git rev-parse --abbrev-ref HEAD | grep -q main
6
+
7
+ # Assert that there are no uncommitted changes
8
+ git diff-index --quiet HEAD --
9
+
10
+ # Bump version in ScipDotnet.csproj
11
+ NEW_VERSION=" $1 "
12
+ sed -i.bak " s/<Version>.*<\/Version>/<Version>$NEW_VERSION <\/Version>/" ScipDotnet/ScipDotnet.csproj
13
+ rm ScipDotnet/ScipDotnet.csproj.bak
14
+
15
+ # Commit and tag new version
16
+ VERSION_TAG=" v$NEW_VERSION "
17
+ git add .
18
+ git commit -m " Bump version to $VERSION_TAG " --allow-empty
19
+ git push origin main
20
+ git tag -af " $VERSION_TAG " -m " Version $NEW_VERSION "
21
+ git push -f origin " $VERSION_TAG "
You can’t perform that action at this time.
0 commit comments