From 3c72c15703af530144e990d511f2b93e217f97cf Mon Sep 17 00:00:00 2001 From: Andrei Jiroh Halili Date: Sun, 13 Oct 2024 03:15:13 +0000 Subject: [PATCH] ci(gitlab-ci): update deploy script for uberspace Signed-off-by: Andrei Jiroh Halili --- bin/build.sh | 4 +++- bin/deploy.sh | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/build.sh b/bin/build.sh index f3d8498..6e36186 100755 --- a/bin/build.sh +++ b/bin/build.sh @@ -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 diff --git a/bin/deploy.sh b/bin/deploy.sh index ca8f8d8..f1fc687 100755 --- a/bin/deploy.sh +++ b/bin/deploy.sh @@ -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 \ No newline at end of file