This commit is contained in:
parent
01907e5fb6
commit
7706986cef
@ -27,4 +27,4 @@ jobs:
|
||||
./dropshell-build/test.sh
|
||||
- name: Publish
|
||||
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}/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
|
||||
|
13
sos/sos
13
sos/sos
@ -78,12 +78,15 @@ METADATA_JSON=$(cat <<EOF
|
||||
}
|
||||
EOF
|
||||
)
|
||||
|
||||
TOKENPATH="$HOME/.config/sos/write_token.txt"
|
||||
if [ ! -f "$TOKENPATH" ]; then
|
||||
die "Token file not found: $TOKENPATH. Please create it and put your write token in it."
|
||||
if [ ! -z "$SOS_WRITE_TOKEN" ]; then
|
||||
WRITE_TOKEN="$SOS_WRITE_TOKEN"
|
||||
else
|
||||
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
|
||||
WRITE_TOKEN=$(cat "$TOKENPATH")
|
||||
|
||||
HASH=""
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user