-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #191 from stelligent/release-1.0.3
fix for #187
- Loading branch information
Showing
18 changed files
with
104 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,9 +46,11 @@ jobs: | |
- store_artifacts: | ||
path: artifacts | ||
|
||
# The second key is for the repo homebrew-tap | ||
- add_ssh_keys: | ||
fingerprints: | ||
- "53:1f:d0:6f:24:2a:bf:cb:92:0f:bc:1e:14:6e:1d:72" | ||
- "35:fc:cc:f6:12:88:e2:56:24:17:09:36:3e:53:e6:68" | ||
|
||
## In order for deploy to work, you need an environment variable set in CircleCI named "GITHUB_TOKEN" that contains | ||
## a token created from https://github.com/settings/tokens | ||
|
@@ -62,12 +64,14 @@ jobs: | |
name: Deploy | ||
command: | | ||
cd $APP_PATH | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "mu-ci" | ||
if [ "${CIRCLE_BRANCH}" == "develop" ]; then | ||
make dev-release | ||
make formula | ||
elif [ "${CIRCLE_BRANCH}" == "master" ]; then | ||
make release | ||
make formula | ||
fi | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
.release/ | ||
vendor/ | ||
*~ | ||
homebrew-tap/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -121,6 +121,34 @@ ifneq ($(IS_MASTER),) | |
git push --delete origin $(TAG_VERSION)-develop || echo "No pre-release tag to delete" | ||
endif | ||
|
||
formula: | ||
rm -rf homebrew-tap | ||
git clone [email protected]:stelligent/homebrew-tap.git | ||
|
||
$(eval MAC_URL := https://github.com/stelligent/mu/releases/download/$(TAG_VERSION)/mu-darwin-amd64) | ||
$(eval MAC_SHA256 := $(shell curl -L -s $(MAC_URL) | shasum -a 256 | cut -d' ' -f1)) | ||
$(eval LINUX_URL := https://github.com/stelligent/mu/releases/download/$(TAG_VERSION)/mu-linux-amd64) | ||
$(eval LINUX_SHA256 := $(shell curl -L -s $(LINUX_URL) | shasum -a 256 | cut -d' ' -f1)) | ||
|
||
# Update formula in mu-cli.rb | ||
ifeq ($(OS),darwin) | ||
sed -i "" 's|.*\( # The MacOS '$(BRANCH)' url\)| url "'$(MAC_URL)'"\1|g ' homebrew-tap/Formula/mu-cli.rb | ||
sed -i "" 's|.*\( # The MacOS '$(BRANCH)' sha256sum\)| sha256 "'$(MAC_SHA256)'"\1|g' homebrew-tap/Formula/mu-cli.rb | ||
sed -i "" 's|.*\( # The Linux '$(BRANCH)' url\)| url "'$(LINUX_URL)'"\1|g' homebrew-tap/Formula/mu-cli.rb | ||
sed -i "" 's|.*\( # The Linux '$(BRANCH)' sha256sum\)| sha256 "'$(LINUX_SHA256)'"\1|g' homebrew-tap/Formula/mu-cli.rb | ||
sed -i "" 's|\(\s*version\).*\( # The '$(BRANCH)' version\)|\1 "'$(VERSION)'"\2|g' homebrew-tap/Formula/mu-cli.rb | ||
else | ||
sed -i"" 's|.*\( # The MacOS '$(BRANCH)' url\)| url "'$(MAC_URL)'"\1|g ' homebrew-tap/Formula/mu-cli.rb | ||
sed -i"" 's|.*\( # The MacOS '$(BRANCH)' sha256sum\)| sha256 "'$(MAC_SHA256)'"\1|g' homebrew-tap/Formula/mu-cli.rb | ||
sed -i"" 's|.*\( # The Linux '$(BRANCH)' url\)| url "'$(LINUX_URL)'"\1|g' homebrew-tap/Formula/mu-cli.rb | ||
sed -i"" 's|.*\( # The Linux '$(BRANCH)' sha256sum\)| sha256 "'$(LINUX_SHA256)'"\1|g' homebrew-tap/Formula/mu-cli.rb | ||
sed -i"" 's|\(\s*version\).*\( # The '$(BRANCH)' version\)|\1 "'$(VERSION)'"\2|g' homebrew-tap/Formula/mu-cli.rb | ||
endif | ||
|
||
git -C homebrew-tap add Formula/mu-cli.rb | ||
git -C homebrew-tap commit -m "auto updated the mu-cli formula for version $(TAG_VERSION) branch $(BRANCH)" | ||
git -C homebrew-tap push | ||
|
||
clean: | ||
@echo "=== cleaning ===" | ||
rm -rf $(BUILD_DIR) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.0.2 | ||
1.0.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule wiki
updated
from 5e7fc1 to 032815
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters