Skip to content

Commit

Permalink
release: clean assets in case of multiple failed release runs (#5852)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksieger committed Jun 6, 2022
1 parent c44c465 commit dc57c51
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/release-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,15 @@ mkdir -p ~/.windmill
echo "$TILT_CLOUD_TOKEN" > ~/.windmill/token

git fetch --tags
./scripts/upload-assets.py latest
goreleaser --rm-dist

VERSION=$(git describe --abbrev=0 --tags)

# Upload assets must come before goreleaser so that embedded assets are built.
./scripts/upload-assets.py --clean "$VERSION"
./scripts/upload-assets.py "$VERSION"

goreleaser --rm-dist

./scripts/release-update-tilt-repo.sh "$VERSION"
./scripts/release-update-tilt-docs-repo.sh "$VERSION"
./scripts/record-release.sh "$VERSION"
Expand Down

0 comments on commit dc57c51

Please sign in to comment.