~sircmpwn/pages.sr.ht-examples

ac477f1b73ed60b8b2928143f5d6a140791a48bc — Rens Oliemans 2 months ago 37305dc master
go-vanity.yml: use hut and go install instead of older alternatives

- hut instead of acurl

- `go install` instead of `go get`, which is no longer supported.

Setting GOBIN (rather than GOPATH, as `go help install` would suggest)
is necessary on my machine in order to install the vangen executable.
1 files changed, 4 insertions(+), 3 deletions(-)

M go-vanity.yml
M go-vanity.yml => go-vanity.yml +4 -3
@@ 1,5 1,6 @@
image: alpine/latest
packages:
  - hut
  - go
oauth: pages.sr.ht/PAGES:RW
environment:


@@ 45,10 46,10 @@ tasks:
      ]
    }
    EOF
    export GOPATH=$HOME/go
    go get 4d63.com/vangen
    export GOBIN=$HOME/go/bin
    go install 4d63.com/vangen@latest
    ./go/bin/vangen
- package: |
    tar -C vangen -cvz . > site.tar.gz
- upload: |
    acurl -f https://pages.sr.ht/publish/$site -Fcontent=@site.tar.gz
    hut pages publish -d $site site.tar.gz