website/bin/deploy.sh
Andrei Jiroh Halili 0c2c365131
Some checks failed
Docker CI / Build environment for GitLab CI/CD (push) Has been cancelled
Docker CI / Generate Gitpod workspace image snapshot (push) Has been cancelled
chore(global): update configs as usual and add ATP-DID well-known fiel
Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.xyz>
2024-11-10 09:23:11 +00:00

24 lines
No EOL
619 B
Bash
Executable file

#!/usr/bin/env bash
set -ea
if [[ $DEBUG != "" ]]; then
set -x
fi
_root_directory_git=$(git rev-parse --show-toplevel)
warn() {
echo "warning: $*"
}
error() {
echo "error: $*"
}
info() {
echo "info: $*"
}
if [[ $CI == "true" ]] && [[ $CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "web" ]] && [[ $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH ]]; then
npx wrangler pages publish ${_root_directory_git}/public --project-name ${CF_PAGES_PROJECT_NAME:-"ajhalili2006"} --branch main
scp -i "$PWD/.secretskit/passwordless" -o "StrictHostKeyChecking=no" -rv public ajhalili@iapetus.uberspace.de:html
fi