1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-08 03:31:59 +02:00
goreleaser/scripts/pages/build.sh
Carlos Alexandro Becker 232c982fb0
docs: improve build (#3674)
- generate releases.json et al on our github actions workflow
- use those when building and also on our `run` script
- new releases will dispatch the workflow so it re-generates the needed
files

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-12-29 14:55:45 -03:00

14 lines
293 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
# install
pip install --upgrade pip
pip install -U mkdocs-material mkdocs-redirects mkdocs-minify-plugin lunr
# prepare
version="$(cat ./www/docs/static/latest)"
sed -s'' -i "s/__VERSION__/$version/g" www/docs/install.md
# build
mkdocs build -f www/mkdocs.yml