~ajhalili2006's personal website, built with Zensical (successor of Material for Mkdocs) [old repo name got bugged while attempting to do manual knot migration via repo deletion] andreijiroh.dev
zensical mkdocs-material website

ci(global): syntax fixes on scripts + repo URL update on config

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@gmail.com>

+1 -1
bin/deploykit-gmi.sh
···
-
#!/bin/env
+
#!/bin/env bash
set -xe
SOURCEHUT_USERNAME=${SOURCEHUT_PAGES_SUBDOMAIN:-"ajhalili2006"}
+4 -3
bin/deploykit-pages.sh
···
echo "info: $*"
}
-
if [[ $_branch_name_git == "main" ]]; then
+
if [[ $_branch_name_git == "main" ]] || [[ $_branch_name_git == "HEAD" ]]; then
DEPLOY_COMMAND="npx wrangler pages publish ${_root_directory_git}/public --project-name ${CF_PAGES_PROJECT_NAME} --branch ${_branch_name_git} --commit-hash ${_commit_sha} --env production"
elif [[ $CI_PIPELINE_SOURCE == "merge_request" ]]; then
DEPLOY_COMMAND="npx wrangler pages publish ${_root_directory_git}/public --project-name ${CF_PAGES_PROJECT_NAME} --branch ${_branch_name_git} --commit-hash ${_commit_sha} --env pr-$CI_MERGE_REQUEST_ID"
···
if [[ $FF_DIRTY_DEPLOY == "true" ]]; then
$DEPLOY_COMMAND --commit-dirty
else
-
${DEPLOY_COMMAND}
+
DEFAULT_COMMAND="npx wrangler pages publish ${_root_directory_git}/public --project-name ${CF_PAGES_PROJECT_NAME} --branch main --env production"
+
${DEPLOY_COMMAND:-$DEFAULT_COMMAND}
fi
-
if [[ $_branch_name_git == "main" ]]; then
+
if [[ $_branch_name_git == "main" ]] || [[ $_branch_name_git == "HEAD" ]]; then
tar -C public -cvz . -f site-build.tar.gz
curl --oauth2-bearer "$SOURCEHUT_PAGES_TOKEN" \
-Fcontent=@site-build.tar.gz \
+1 -1
mkdocs.yml
···
use_directory_urls: true
# repos
-
repo_url: https://mau.dev/ajhalili2006/tildeverse-web
+
repo_url: https://mau.dev/andreijiroh.dev/website
edit_uri: edit/main/markdown
repo_name: source code