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