mirror of
https://git.sr.ht/~phw/scotty
synced 2025-04-25 13:57:56 +02:00
Use goreleaser for packaging
This commit is contained in:
parent
5aed552854
commit
0828fa00fb
5 changed files with 120 additions and 33 deletions
18
.build.yml
18
.build.yml
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue