mirror of
https://git.sr.ht/~phw/scotty
synced 2025-04-29 21:27:05 +02:00
Announce new releases to Go Module Index
This commit is contained in:
parent
c817480809
commit
597914e6db
1 changed files with 10 additions and 0 deletions
10
.build.yml
10
.build.yml
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue