Use goreleaser for packaging

This commit is contained in:
Philipp Wolfer 2023-11-24 14:49:02 +01:00
parent 5aed552854
commit 0828fa00fb
No known key found for this signature in database
GPG key ID: 8FDF744D4919943B
5 changed files with 120 additions and 33 deletions

View file

@ -1,6 +1,7 @@
image: alpine/edge
image: archlinux
packages:
- go
- goreleaser-bin
- hut
oauth: pages.sr.ht/PAGES:RW
tasks:
@ -10,15 +11,14 @@ tasks:
go test -v ./...
- build: |
cd scotty
GOOS=windows GOARCH=amd64 go build -o bin/scotty.exe .
GOOS=linux GOARCH=amd64 go build -o bin/scotty-linux .
GOOS=darwin GOARCH=amd64 go build -o bin/scotty-mac-intel .
GOOS=darwin GOARCH=arm64 go build -o bin/scotty-mac-arm .
goreleaser release --snapshot --clean
- publish-redirect: |
# Update redirect on https://go.uploadedlobster.com/scotty
./scotty/pages/publish.sh
artifacts:
- scotty/bin/scotty.exe
- scotty/bin/scotty-linux
- scotty/bin/scotty-mac-intel
- scotty/bin/scotty-mac-arm
- 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