This commit is contained in:
Philipp Wolfer 2023-11-24 08:10:50 +01:00
parent e1c9fb6076
commit 3ce0851f45
No known key found for this signature in database
GPG key ID: 8FDF744D4919943B
4 changed files with 27 additions and 0 deletions

View file

@ -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

1
pages/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
*.tar.gz

5
pages/publish.sh Executable file
View file

@ -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

16
pages/scotty/index.html Normal file
View file

@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="go-import" content="go.uploadedlobster.com/scotty git https://git.sr.ht/~phw/scotty">
<meta http-equiv="refresh" content="2; url=https://git.sr.ht/~phw/scotty">
<title>scotty</title>
<link rel="icon" href="data:,">
</head>
<body>
Redirecting to <a href="https://git.sr.ht/~phw/scotty">scotty</a>...
</body>
</html>