scotty/.build.yml
Philipp Wolfer cde9b28c28
improved packaging
- use version in archive name
- "macOS" instead of "Darwin"
- include example config in archives
- use subdir in archives
2023-11-28 13:07:49 +01:00

30 lines
787 B
YAML

image: archlinux
packages:
- go
- goreleaser-bin
- hut
oauth: pages.sr.ht/PAGES:RW
tasks:
- test: |
cd scotty
go build -v .
go test -v ./...
- build: |
cd scotty
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
artifacts:
- scotty/dist/scotty_Darwin_all.tar.gz
- scotty/dist/scotty_Linux_arm64.tar.gz
- scotty/dist/scotty_Linux_i386.tar.gz
- scotty/dist/scotty_Linux_x86_64.tar.gz
- scotty/dist/scotty_Windows_arm64.zip
- scotty/dist/scotty_Windows_x86_64.zip