This commit is contained in:
parent
01907e5fb6
commit
7706986cef
@ -27,4 +27,4 @@ jobs:
|
|||||||
./dropshell-build/test.sh
|
./dropshell-build/test.sh
|
||||||
- name: Publish
|
- name: Publish
|
||||||
run: |
|
run: |
|
||||||
./dropshell-build/publish.sh
|
SOS_WRITE_TOKEN=${{ secrets.SOS_WRITE_TOKEN }} ./dropshell-build/publish.sh
|
||||||
|
@ -6,6 +6,6 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
|||||||
|
|
||||||
"${SCRIPT_DIR}/build.sh"
|
"${SCRIPT_DIR}/build.sh"
|
||||||
|
|
||||||
"${SCRIPT_DIR}/sos/sos" upload "getbin.xyz" "dropshell-build" "${SCRIPT_DIR}/src/dropshell-build"
|
"${SCRIPT_DIR}/../sos/sos" upload "getbin.xyz" "dropshell-build" "${SCRIPT_DIR}/src/dropshell-build"
|
||||||
|
|
||||||
docker push gitea.jde.nz/public/dropshell-build:latest
|
docker push gitea.jde.nz/public/dropshell-build:latest
|
||||||
|
13
sos/sos
13
sos/sos
@ -78,12 +78,15 @@ METADATA_JSON=$(cat <<EOF
|
|||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
)
|
)
|
||||||
|
if [ ! -z "$SOS_WRITE_TOKEN" ]; then
|
||||||
TOKENPATH="$HOME/.config/sos/write_token.txt"
|
WRITE_TOKEN="$SOS_WRITE_TOKEN"
|
||||||
if [ ! -f "$TOKENPATH" ]; then
|
else
|
||||||
die "Token file not found: $TOKENPATH. Please create it and put your write token in it."
|
TOKENPATH="$HOME/.config/sos/write_token.txt"
|
||||||
|
if [ ! -f "$TOKENPATH" ]; then
|
||||||
|
die "Token file not found in environment variable SOS_WRITE_TOKEN or $TOKENPATH. Please create it and put your write token in it."
|
||||||
|
fi
|
||||||
|
WRITE_TOKEN=$(cat "$TOKENPATH")
|
||||||
fi
|
fi
|
||||||
WRITE_TOKEN=$(cat "$TOKENPATH")
|
|
||||||
|
|
||||||
HASH=""
|
HASH=""
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user