ci(gitlab-ci): update deploy script for uberspace
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

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.xyz>
This commit is contained in:
Andrei Jiroh Halili 2024-10-13 03:15:13 +00:00
parent 3ac60fc53d
commit 3c72c15703
No known key found for this signature in database
GPG key ID: 67BFC91B3DA12BE8
2 changed files with 4 additions and 1 deletions

View file

@ -1,6 +1,8 @@
#!/usr/bin/env bash
set -ex
SOURCE_DIR="${PWD}/markdown"
TARGET_DIR="${PWD}/public"
pipenv run build
cp "$TARGET_DIR/assets/images/favicon.png" "$TARGET_DIR/favicon.ico"
cp "$TARGET_DIR/assets/images/favicon.png" "$TARGET_DIR/favicon.ico" -v
cp "$SOURCE_DIR/.well-known" "$TARGET_DIR/" -rv

View file

@ -20,4 +20,5 @@ 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} --branch main
scp -rv public ajhalili@iapetus.uberspace.de:html
fi