mirror of
https://mau.dev/andreijiroh-dev/website.git
synced 2024-11-24 17:33:48 +00:00
ci(gitlab-ci): update deploy script for uberspace
Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.xyz>
This commit is contained in:
parent
3ac60fc53d
commit
3c72c15703
2 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Reference in a new issue