image: archlinux packages: - go - goreleaser-bin - hut - weblate-wlc secrets: - 0e2ad815-6c46-4cea-878e-70fc33f71e77 oauth: pages.sr.ht/PAGES:RW tasks: - weblate-update: | cd scotty wlc --format text pull scotty - 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 cd dist/ tar cvf artifacts.tar scotty-*.{gz,zip} scotty_*_checksums.txt - publish-redirect: | # Update redirect on https://go.uploadedlobster.com/scotty ./scotty/pages/publish.sh artifacts: - scotty/dist/artifacts.tar