Commit 5448d39270
Verified · cmc ci/pages: failure ci/test: failure
Layout: unified · split
.gitbay/pages.sh +1 −1
| @@ -31,6 +31,6 @@ git -C "$work" -c user.name=gitbay-ci -c user.email=ci@orgo.krz.sh commit -q \ | ||
| 31 | 31 | -m "Publish the documentation site |
| 32 | 32 | |
| 33 | 33 | Built from ${GITBAY_SHA} by \`orgo build docs -o _site --strict\`." |
| 34 | git -C "$work" push -q --force "ssh://git@gitbay.org/${GITBAY_REPO}.git" HEAD:refs/heads/pages | |
| 34 | git -C "$work" push -q --force "$(git remote get-url origin)" HEAD:refs/heads/pages | |
| 35 | 35 | |
| 36 | 36 | echo "published the site from ${GITBAY_SHA} to the pages branch" |
.gitbay/release.sh +6 −2
| @@ -26,6 +26,10 @@ if [ "$tag" != "v$version" ]; then | ||
| 26 | 26 | exit 1 |
| 27 | 27 | fi |
| 28 | 28 | |
| 29 | # Reach the forge on whatever host the runner cloned from, rather than a name it | |
| 30 | # may not have in known_hosts. | |
| 31 | host=$(git remote get-url origin | sed 's#.*://[^@]*@##; s#[:/].*##') | |
| 32 | ||
| 29 | 33 | dist=dist |
| 30 | 34 | mkdir -p "$dist" |
| 31 | 35 | |
| @@ -48,10 +52,10 @@ done | ||
| 48 | 52 | # Notes come from the annotated tag, so the person cutting the release writes |
| 49 | 53 | # them at the moment they decide to cut it (`git tag -a "$tag" -F notes.md`). |
| 50 | 54 | git tag -l --format='%(contents)' "$tag" | |
| 51 | ssh git@gitbay.org release create "$repo" "$tag" --title "${tag#v}" --file - | |
| 55 | ssh "git@$host" release create "$repo" "$tag" --title "${tag#v}" --file - | |
| 52 | 56 | |
| 53 | 57 | for f in "$dist"/*; do |
| 54 | ssh git@gitbay.org release asset add "$repo" "$tag" "$(basename "$f")" <"$f" | |
| 58 | ssh "git@$host" release asset add "$repo" "$tag" "$(basename "$f")" <"$f" | |
| 55 | 59 | echo "attached $(basename "$f")" |
| 56 | 60 | done |
| 57 | 61 | |