File tree Expand file tree Collapse file tree 4 files changed +8
-6
lines changed
Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -54,13 +54,13 @@ jobs:
5454
5555 make build
5656 - name : prepare release
57- run : ./scripts/release/prepare-release.sh
57+ run : echo $LAUNCHDARKLY_HOMEBREW_TAP_DEPLOY_KEY != "" && ./scripts/release/prepare-release.sh
5858 - name : publish
5959 run : |
6060 if [[ "$DRY_RUN" = true ]]; then
6161 ./scripts/release/publish-dry-run.sh
6262 else
63- ./scripts/release/publish.sh
63+ echo $LAUNCHDARKLY_HOMEBREW_TAP_DEPLOY_KEY != "" && ./scripts/release/publish.sh
6464 fi
6565 env :
6666 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -72,10 +72,10 @@ brews:
7272 repository :
7373 owner : launchdarkly
7474 name : homebrew-tap
75- # token: "{{ .Env.GITHUB_TOKEN }}"
76- git :
77- url :
[email protected] :launchdarkly/homebrew-tap.git 78- private_key : " {{ .Env.LAUNCHDARKLY_HOMEBREW_TAP_DEPLOY_KEY }}"
75+ token : " {{ .Env.LAUNCHDARKLY_HOMEBREW_TAP_DEPLOY_KEY }}"
76+ # git:
77+ # url: [email protected] :launchdarkly/homebrew-tap.git 78+ # private_key: "{{ .Env.LAUNCHDARKLY_HOMEBREW_TAP_DEPLOY_KEY }}"
7979 directory : Formula
8080 url_template : " https://github.com/launchdarkly/ld-find-code-refs/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
8181 install : |
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ echo " brew deploy key is set: " && echo $LAUNCHDARKLY_HOMEBREW_TAP_DEPLOY_KEY ! = " "
34# the "publish" makefile target pushes the image to Docker
45$( dirname $0 ) /run-publish-target.sh publish
56
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ cat "${LD_RELEASE_SECRETS_DIR}/docker_token" | sudo docker login --username "${d
2020# Set github token to be used in releaser
2121GITHUB_TOKEN=$( cat ${LD_RELEASE_SECRETS_DIR} /github_token)
2222
23+ echo " brew deploy key is set: " && echo $LAUNCHDARKLY_HOMEBREW_TAP_DEPLOY_KEY ! = " "
2324sudo PATH=${PATH} GITHUB_TOKEN=${GITHUB_TOKEN} LAUNCHDARKLY_HOMEBREW_TAP_DEPLOY_KEY=${LAUNCHDARKLY_HOMEBREW_TAP_DEPLOY_KEY} make $TARGET
2425
2526# Goreleaser puts all the artifacts in ./dist - copying them to $LD_RELEASE_ARTIFACTS_DIR
You can’t perform that action at this time.
0 commit comments