10
0
Fork 0
mirror of https://code.forgejo.org/actions/forgejo-release synced 2026-04-06 18:16:53 +00:00

fix: wrong assest upload

This commit is contained in:
Michael Kriese 2026-02-17 17:35:27 +01:00
parent 9112f0a8e8
commit 0fe1533e48
No known key found for this signature in database
GPG key ID: F8D7748549A5986A
2 changed files with 16 additions and 33 deletions

View file

@ -4,6 +4,20 @@
set -ex
PS4='${BASH_SOURCE[0]}:$LINENO: ${FUNCNAME[0]}: '
: ${TEA_BIN:=$TMP_DIR/tea}
: ${TEA_VERSION:=0.10.1}
# TODO: remove, still used in some tests
setup_tea() {
if which tea 2>/dev/null; then
TEA_BIN=$(which tea)
elif ! test -f $TEA_BIN; then
ARCH=$(dpkg --print-architecture)
curl -sL https://dl.gitea.io/tea/$TEA_VERSION/tea-$TEA_VERSION-linux-"$ARCH" >$TEA_BIN
chmod +x $TEA_BIN
fi
}
test_system_tea_bin() {
SYSTEM_TEA_BIN=$TMP_DIR/tea
touch $SYSTEM_TEA_BIN && chmod +x $SYSTEM_TEA_BIN