From 3ce0851f45e80a85ffa348761783d762367fa5c5 Mon Sep 17 00:00:00 2001 From: Philipp Wolfer Date: Fri, 24 Nov 2023 08:10:50 +0100 Subject: [PATCH] Publish module redirect on https://go.uploadedlobster.com/scotty --- .build.yml | 5 +++++ pages/.gitignore | 1 + pages/publish.sh | 5 +++++ pages/scotty/index.html | 16 ++++++++++++++++ 4 files changed, 27 insertions(+) create mode 100644 pages/.gitignore create mode 100755 pages/publish.sh create mode 100644 pages/scotty/index.html diff --git a/.build.yml b/.build.yml index 54ebd06..cc71df2 100644 --- a/.build.yml +++ b/.build.yml @@ -1,6 +1,8 @@ image: alpine/edge packages: - go + - hut +oauth: pages.sr.ht/PAGES:RW tasks: - test: | cd scotty @@ -12,6 +14,9 @@ tasks: 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 . + - publish-redirect: | + # Update redirect on https://go.uploadedlobster.com/scotty + ./scotty/pages/publish.sh artifacts: - scotty/bin/scotty.exe - scotty/bin/scotty-linux diff --git a/pages/.gitignore b/pages/.gitignore new file mode 100644 index 0000000..335ec95 --- /dev/null +++ b/pages/.gitignore @@ -0,0 +1 @@ +*.tar.gz diff --git a/pages/publish.sh b/pages/publish.sh new file mode 100755 index 0000000..e144254 --- /dev/null +++ b/pages/publish.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +cd $(dirname "$0") +tar -C scotty -cvzf ./pages.tar.gz index.html +hut pages publish -d go.uploadedlobster.com -s scotty pages.tar.gz diff --git a/pages/scotty/index.html b/pages/scotty/index.html new file mode 100644 index 0000000..2918ec5 --- /dev/null +++ b/pages/scotty/index.html @@ -0,0 +1,16 @@ + + + + + + + + scotty + + + + + Redirecting to scotty... + + +