~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: update build and deploy scripts

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.dev>

andreijiroh.dev d89cafb8 2462fd44

verified
Changed files
+4 -3
bin
+2 -2
bin/deploy.sh
···
}
if [[ $CI == "true" ]]; then
-
info "Deploying to Cloudflare Pages"
+
info "Deploying to Cloudflare Workers"
if [[ $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
+
npx wrangler deploy
fi
fi
+2 -1
wrangler.jsonc
···
"run_worker_first": false
},
"build": {
-
"command": "pipenv run build"
+
"command": "bash ./bin/build.sh",
+
},
"workers_dev": true,
"preview_urls": true,