Skip to content

Commit

Permalink
feat(scripts): Upload documentation for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
timo-reymann committed Jan 3, 2025
1 parent d3e5c27 commit 27e80da
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/upload-release-to-pages.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/usr/bin/env bash
set -eo pipefail

PROJECT_DIR="$(dirname "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")")"

release_tag="$1"
if [[ -z "$release_tag" ]]; then
echo "Usage: $0 <release_tag>"
Expand Down Expand Up @@ -34,6 +36,8 @@ echo "Link ${release_tag} to latest ..."
rm latest || true
ln -s "${release_tag}" latest

cp -R "${PROJECT_DIR}/docs" "${release_tag}/docs"

git stage .
git commit -m "chore: Add assets for ${release_tag}\
Expand Down

0 comments on commit 27e80da

Please sign in to comment.