Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hardcode version, add a release script #25

Merged
merged 1 commit into from
May 10, 2024

Conversation

motiejus
Copy link
Collaborator

@motiejus motiejus commented May 10, 2024

Having thought about this more, I am semi-reverting fcd4d58 in favor of hardcoding the version to the binary and a release script.

[motiejus@mtworx:~/code/btrfs-auto-snapshot]$ ./release v3.0.0
+ sed -i s/^\(BTRFS_AUTO_SNAPSHOT_VERSION\)=.*/\1=v3.0.0/ btrfs-auto-snapshot
+ git add btrfs-auto-snapshot                           
+ git commit -m btrfs-auto-snapshot v3.0.0                                
[release-script 27c55c5] btrfs-auto-snapshot v3.0.0
1 file changed, 1 insertion(+), 1 deletion(-)
+ git tag v3.0.0
+ sed -i s/^\(BTRFS_AUTO_SNAPSHOT_VERSION\)=.*/\1=v3.0.0+dev/ btrfs-auto-snapshot
+ git add btrfs-auto-snapshot           
+ git commit -m "btrfs-auto-snapshot v3.0.0+dev"                   
[release-script 4598c6e] btrfs-auto-snapshot v3.0.0+dev
 1 file changed, 1 insertion(+), 1 deletion(-)                                                                                                       

You have tagged v3.0.0. Now run the following:
  git push origin master                 
  git push origin v3.0.0

@motiejus
Copy link
Collaborator Author

@hunleyd I accidentally pushed this to your branch release-script instead of mine, but cannot delete the branch. Sorry.

@motiejus motiejus force-pushed the release-script branch 3 times, most recently from a9bb2cc to 92391a7 Compare May 10, 2024 11:45
Having thought about this more, I am semi-reverting
fcd4d58 in favor of hardcoding the
version to the binary and a release script.
@motiejus motiejus merged commit 851f357 into hunleyd:master May 10, 2024
1 check passed
@motiejus motiejus deleted the release-script branch May 10, 2024 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants