chore: update deployment instructions (#491)

`deploy.sh` is not used.

Link to the cron job.

Resolves #438

Reviewed-on: https://codeberg.org/Codeberg/Documentation/pulls/491
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>
This commit is contained in:
Gusted 2024-11-28 03:43:55 +00:00 committed by Gusted
parent 21e594cb8a
commit 2fa6aaedbb
3 changed files with 2 additions and 16 deletions

View file

@ -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.

View file

@ -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

View file

@ -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": {