Commit d111cdeaac
Verified · cmc ci/pages: success ci/test: success
Layout: unified · split
.gitbay/bot-ssh.sh +1
| @@ -13,4 +13,5 @@ | |||
| 13 | "$PWD/.bot_key" "$PWD/.known_hosts" >"$PWD/.ssh_config" | 13 | "$PWD/.bot_key" "$PWD/.known_hosts" >"$PWD/.ssh_config" |
| 14 | ) | 14 | ) |
| 15 | SSH="ssh -F $PWD/.ssh_config" | 15 | SSH="ssh -F $PWD/.ssh_config" |
| 16 | bot_ssh() { ssh -F "$PWD/.ssh_config" "$@"; } | ||
| 16 | export GIT_SSH_COMMAND="$SSH" | 17 | export GIT_SSH_COMMAND="$SSH" |
.gitbay/release.sh +2 −2
| @@ -50,10 +50,10 @@ done | |||
| 50 | # Notes come from the annotated tag, so the person cutting the release writes | 50 | # Notes come from the annotated tag, so the person cutting the release writes |
| 51 | # them at the moment they decide to cut it (`git tag -a "$tag" -F notes.md`). | 51 | # them at the moment they decide to cut it (`git tag -a "$tag" -F notes.md`). |
| 52 | git tag -l --format='%(contents)' "$tag" | | 52 | git tag -l --format='%(contents)' "$tag" | |
| 53 | $SSH "$GITBAY_SSH" release create "$repo" "$tag" --title "${tag#v}" --file - | 53 | bot_ssh "$GITBAY_SSH" release create "$repo" "$tag" --title "${tag#v}" --file - |
| 54 | 54 | ||
| 55 | for f in "$dist"/*; do | 55 | for f in "$dist"/*; do |
| 56 | $SSH "$GITBAY_SSH" release asset add "$repo" "$tag" "$(basename "$f")" <"$f" | 56 | bot_ssh "$GITBAY_SSH" release asset add "$repo" "$tag" "$(basename "$f")" <"$f" |
| 57 | echo "attached $(basename "$f")" | 57 | echo "attached $(basename "$f")" |
| 58 | done | 58 | done |
| 59 | 59 | ||