improved packaging

- use version in archive name
- "macOS" instead of "Darwin"
- include example config in archives
- use subdir in archives
This commit is contained in:
Philipp Wolfer 2023-11-28 10:01:35 +01:00
parent d96df4367d
commit cde9b28c28
No known key found for this signature in database
GPG key ID: 8FDF744D4919943B
5 changed files with 17 additions and 5 deletions

View file

@ -11,7 +11,13 @@ tasks:
go test -v ./...
- build: |
cd scotty
goreleaser release --snapshot --clean
GIT_REF=$(git describe --always)
if [[ "$GIT_REF" =~ ^v[0-9]+\.[0-9]+(\.[0-9]+)?$ ]]
then
goreleaser release --clean
else
goreleaser release --snapshot --clean
fi
- publish-redirect: |
# Update redirect on https://go.uploadedlobster.com/scotty
./scotty/pages/publish.sh