Verify release artifacts before tagging
ci / test (push) Canceled after 0s
ci / fuzz-smoke (push) Canceled after 0s
ci / macos-client (macos-aarch64, macos-14) (push) Canceled after 0s
ci / macos-client (macos-x86_64, macos-13) (push) Canceled after 0s
ci / windows-client (push) Canceled after 0s
ci / package-release (linux-x86_64, ubuntu-latest, , , ) (push) Canceled after 0s
ci / package-release (macos-aarch64, macos-14, , , ) (push) Canceled after 0s
ci / package-release (macos-x86_64, macos-13, , , ) (push) Canceled after 0s
ci / package-release (windows-aarch64, windows-latest, aarch64, windows, aarch64-pc-windows-msvc) (push) Canceled after 0s
ci / package-release (windows-x86_64, windows-latest, , , ) (push) Canceled after 0s
ci / remote-bench (push) Canceled after 0s
ci / publish-gitea-release (push) Canceled after 0s
ci / test (push) Canceled after 0s
ci / fuzz-smoke (push) Canceled after 0s
ci / macos-client (macos-aarch64, macos-14) (push) Canceled after 0s
ci / macos-client (macos-x86_64, macos-13) (push) Canceled after 0s
ci / windows-client (push) Canceled after 0s
ci / package-release (linux-x86_64, ubuntu-latest, , , ) (push) Canceled after 0s
ci / package-release (macos-aarch64, macos-14, , , ) (push) Canceled after 0s
ci / package-release (macos-x86_64, macos-13, , , ) (push) Canceled after 0s
ci / package-release (windows-aarch64, windows-latest, aarch64, windows, aarch64-pc-windows-msvc) (push) Canceled after 0s
ci / package-release (windows-x86_64, windows-latest, , , ) (push) Canceled after 0s
ci / remote-bench (push) Canceled after 0s
ci / publish-gitea-release (push) Canceled after 0s
This commit is contained in:
@@ -17,6 +17,7 @@ Defaults:
|
||||
Environment:
|
||||
GITEA_URL, GITEA_REPO, GITEA_TOKEN: same as upload-gitea-release.sh
|
||||
DOSH_PUBLISH_ALLOW_DIRTY=1 allow uncommitted changes
|
||||
DOSH_RELEASE_ALLOW_PARTIAL=1 allow publishing an incomplete artifact set
|
||||
EOF
|
||||
}
|
||||
|
||||
@@ -36,6 +37,7 @@ token="${GITEA_TOKEN:-}"
|
||||
build="${DOSH_PUBLISH_BUILD:-1}"
|
||||
push_tag="${DOSH_PUBLISH_PUSH:-1}"
|
||||
prune="${DOSH_PUBLISH_PRUNE:-1}"
|
||||
allow_partial="${DOSH_RELEASE_ALLOW_PARTIAL:-0}"
|
||||
|
||||
if [ -z "$token" ] && [ -f "$HOME/.config/dosh/gitea-token" ]; then
|
||||
token="$(tr -d '\r\n' <"$HOME/.config/dosh/gitea-token")"
|
||||
@@ -57,6 +59,14 @@ if [ "${DOSH_PUBLISH_ALLOW_DIRTY:-0}" != "1" ] && [ -n "$(git status --porcelain
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ "$build" = "1" ]; then
|
||||
sh scripts/package-release.sh
|
||||
fi
|
||||
|
||||
if [ "$allow_partial" != "1" ]; then
|
||||
sh scripts/verify-release-artifacts.sh
|
||||
fi
|
||||
|
||||
head="$(git rev-parse HEAD)"
|
||||
if git rev-parse -q --verify "refs/tags/$tag" >/dev/null; then
|
||||
tagged="$(git rev-list -n 1 "$tag")"
|
||||
@@ -72,10 +82,6 @@ if [ "$push_tag" = "1" ]; then
|
||||
git push origin "$tag"
|
||||
fi
|
||||
|
||||
if [ "$build" = "1" ]; then
|
||||
sh scripts/package-release.sh
|
||||
fi
|
||||
|
||||
scripts/upload-gitea-release.sh "$tag"
|
||||
|
||||
api="$base/api/v1/repos/$repo"
|
||||
|
||||
Reference in New Issue
Block a user