diff --git a/README.md b/README.md index 78f4630..a7dbef2 100644 --- a/README.md +++ b/README.md @@ -98,6 +98,8 @@ Deployment previews are generated for every PR using [Surge.sh](https://surge.sh A spellchecker is used to check for spelling errors in the documentation. To add exceptions to the spellchecker, add them to the `.cspell.json` file. +This project is deployed to Codeberg via [a cron job](https://codeberg.org/Codeberg-Infrastructure/scripted-configuration/src/branch/main/hosts/static/home/build/build_docs.sh) executed on the Codeberg infrastructure. + ## License and Contributors This website (excluding bundled fonts) is licensed under CC BY-SA 4.0. See the [LICENSE](LICENSE.md) file for details. diff --git a/deploy.sh b/deploy.sh deleted file mode 100755 index a8354ec..0000000 --- a/deploy.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash -ex -pnpm run build - -DEPLOYMENT_REPO=${1:-git@codeberg.org:Codeberg-Infrastructure/static-deployments} -DEPLOYMENT_BRANCH=${2:-docs} -rm -rf pages.git -mkdir pages.git -( cd pages.git && git init -b "$DEPLOYMENT_BRANCH" ) -rsync -av _site/* pages.git/ -echo "docs.codeberg.org" > pages.git/.domains -( cd pages.git && git add -A ) ## add all generated files -( cd pages.git && git commit -m "Deployment at $(date -u -Is)" ) ## commit all -( cd pages.git && git remote add origin "$DEPLOYMENT_REPO" ) -( cd pages.git && git push -f origin "$DEPLOYMENT_BRANCH" ) ## force-push and rewrite (empty) history diff --git a/package.json b/package.json index 73de8af..882fcaa 100644 --- a/package.json +++ b/package.json @@ -4,8 +4,6 @@ "private": true, "scripts": { "build": "rm -rf _site/ && eleventy", - "deploy": "./deploy.sh git@codeberg.org:docs/pages.git", - "deploytest": "ELEVENTY_ENV=testing ./deploy.sh git@codeberg-test.org:docs/pages.git", "serve": "eleventy --serve" }, "devDependencies": {