1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00

docs: deploy to cloudflare pages

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
Carlos A Becker 2022-12-29 11:11:16 -03:00
parent da2335791a
commit c714e13a84
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

14
scripts/pages/build.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/bash
set -euo pipefail
# install
pip install --upgrade pip
pip install -U mkdocs-material mkdocs-redirects mkdocs-minify-plugin lunr
# prepare
./scripts/get-releases.sh
version="$(curl -sSf -H "Authorization: Bearer $GITHUB_TOKEN" "https://api.github.com/repos/goreleaser/goreleaser/releases/latest" | jq -r '.tag_name')"
sed -s'' -i "s/__VERSION__/$version/g" www/docs/install.md
# build
mkdocs build -f www/mkdocs.yml