1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-08 03:31:59 +02:00
goreleaser/scripts/vercel/build.sh
Carlos Alexandro Becker 8faf7dbe55
docs: fix version in docs (#2681)
* docs: fix version in docs

* fix: script

* docs: improve install

* fix: curl

* fix: get releases

* docs: instructions

* docs: instructions
2021-11-22 09:39:16 -03:00

7 lines
299 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
./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
mkdocs build -f www/mkdocs.yml