Announce new releases to Go Module Index

This commit is contained in:
Philipp Wolfer 2025-04-29 11:15:49 +02:00
parent c817480809
commit 597914e6db
No known key found for this signature in database
GPG key ID: 8FDF744D4919943B

View file

@ -29,5 +29,15 @@ tasks:
- publish-redirect: | - publish-redirect: |
# Update redirect on https://go.uploadedlobster.com/scotty # Update redirect on https://go.uploadedlobster.com/scotty
./scotty/pages/publish.sh ./scotty/pages/publish.sh
# Skip releasing if this is not a tagged release
- only-tags: |
cd scotty
GIT_REF=$(git describe --always)
[[ "$GIT_REF" =~ ^v[0-9]+\.[0-9]+(\.[0-9]+)?$ ]] || complete-build
- announce-release: |
# Announce new release to Go Module Index
cd scotty
VERSION=$(git describe --exact-match)
curl "https://proxy.golang.org/go.uploadedlobster.com/scotty/@v/${VERSION}.info"
artifacts: artifacts:
- scotty/dist/artifacts.tar - scotty/dist/artifacts.tar