Skip to content

Commit

Permalink
Fix release instructions, Fix homebrew update (#685)
Browse files Browse the repository at this point in the history
Co-authored-by: amalota <amalota@virtuslab.com>
  • Loading branch information
amalota and amalota authored Oct 10, 2022
1 parent 40cb448 commit b088bb6
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ Review fixes should be pushed on separate commits for easier viewing on GitHub (
git pull origin develop
git checkout master
git pull origin master
git merge --no-ff develop
git merge --ff-only develop
git push origin master

1. Verify that the release has been created on [GitHub](https://github.com/VirtusLab/git-machete/releases)
Expand Down
5 changes: 5 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Release notes

## New in git-machete 3.12.3

- fixed: release instructions in CONTRIBUTING.md are now correct
- fixed: release to Homebrew doesn't crash the deployment process

## New in git-machete 3.12.2

- added: `git-machete` is now available in homebrew core formulae; if `git-machete` has already been installed from the tap on a given machine, `brew` should automatically pull new updates from homebrew core from now on
Expand Down
11 changes: 8 additions & 3 deletions ci/homebrew/ci-deploy.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

set -e -o pipefail -u
set -e -o pipefail -u -x

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" < /dev/null
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
Expand All @@ -19,13 +19,18 @@ sha256=$(
curl -s https://$pypi_host/pypi/git-machete/"$version"/json \
| jq --raw-output '.urls | map(select(.packagetype == "sdist")) | .[0].digests.sha256')

git config user.email "gitmachete@virtuslab.com"
git config user.name "Git Machete Bot"

echo "Bump homebrew formula"
if [[ $do_push == true ]]; then
brew bump-formula-pr --url "$url" --sha256 "$sha256" git-machete
brew bump-formula-pr --no-browse --verbose --url "$url" --sha256 "$sha256" git-machete
else
echo "Refraining from push since it's a dry run"
brew bump-formula-pr --write-only --url "$url" --sha256 "$sha256" git-machete
brew bump-formula-pr --write-only --no-browse --verbose --url "$url" --sha256 "$sha256" git-machete
fi

echo "Install formula locally"
brew install --build-from-source --formula /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/git-machete.rb
if [[ "$version" != "$(git machete --version | cut -d' ' -f4)" ]]; then
echo "Something went wrong during brew installation: installed version does not match version from formula."
Expand Down
2 changes: 1 addition & 1 deletion git_machete/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '3.12.2'
__version__ = '3.12.3'

0 comments on commit b088bb6

Please sign in to comment.