mirror of
https://git.sr.ht/~phw/scotty
synced 2025-04-19 11:39:29 +02:00
Publish module redirect on https://go.uploadedlobster.com/scotty
This commit is contained in:
parent
e1c9fb6076
commit
3ce0851f45
4 changed files with 27 additions and 0 deletions
|
@ -1,6 +1,8 @@
|
||||||
image: alpine/edge
|
image: alpine/edge
|
||||||
packages:
|
packages:
|
||||||
- go
|
- go
|
||||||
|
- hut
|
||||||
|
oauth: pages.sr.ht/PAGES:RW
|
||||||
tasks:
|
tasks:
|
||||||
- test: |
|
- test: |
|
||||||
cd scotty
|
cd scotty
|
||||||
|
@ -12,6 +14,9 @@ tasks:
|
||||||
GOOS=linux GOARCH=amd64 go build -o bin/scotty-linux .
|
GOOS=linux GOARCH=amd64 go build -o bin/scotty-linux .
|
||||||
GOOS=darwin GOARCH=amd64 go build -o bin/scotty-mac-intel .
|
GOOS=darwin GOARCH=amd64 go build -o bin/scotty-mac-intel .
|
||||||
GOOS=darwin GOARCH=arm64 go build -o bin/scotty-mac-arm .
|
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:
|
artifacts:
|
||||||
- scotty/bin/scotty.exe
|
- scotty/bin/scotty.exe
|
||||||
- scotty/bin/scotty-linux
|
- scotty/bin/scotty-linux
|
||||||
|
|
1
pages/.gitignore
vendored
Normal file
1
pages/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
*.tar.gz
|
5
pages/publish.sh
Executable file
5
pages/publish.sh
Executable 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
16
pages/scotty/index.html
Normal 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>
|
Loading…
Add table
Reference in a new issue