Browse Source

Fail if GITEATOKEN is not set

master
Fábio Kaiser Rauber 2 weeks ago
parent
commit
6298ec325f
  1. 5
      .drone.yml

5
.drone.yml

@ -47,9 +47,8 @@ steps:
- name: push-to-branch
image: alpine/git
commands:
# Debug: Verify API key presence
- "test -n \"$GITEATOKEN\" || { echo \"GITEATOKEN is not set\"; exit 1; }"
- "echo \"Key: ${GITEATOKEN}\""
# Fail explicitly if GITEA_API_KEY is unset or empty
- "if [ -z \"$GITEATOKEN\" ]; then echo \"Error: GITEATOKEN is not set or empty\"; exit 1; fi"
# Check if gh-pages exists remotely, fetch it if it does, otherwise create it
- git ls-remote --heads origin gh-pages | grep -q gh-pages && git fetch origin gh-pages && git checkout gh-pages || git checkout -b gh-pages
# Stage the charts/dist directory (already in the working directory)

Loading…
Cancel
Save