replace the Docker artifact build with GoReleaser config and a tag release workflow. Keep local artifact builds snapshot-only and clean generated frontend embed files after release runs.
13 lines
349 B
Bash
Executable File
13 lines
349 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
ROOT=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)
|
|
PREPARED_MARKER="$ROOT/backend/app/cmd/web/.release-assets-prepared"
|
|
|
|
if [[ ! -e "$PREPARED_MARKER" ]]; then
|
|
exit 0
|
|
fi
|
|
|
|
git -C "$ROOT" checkout -- backend/app/cmd/web
|
|
git -C "$ROOT" clean -fdX backend/app/cmd/web frontend/apps/remark42/public >/dev/null
|