37 lines
1.7 KiB
Bash
Executable File
37 lines
1.7 KiB
Bash
Executable File
#! /usr/bin/env sh
|
|
export CGO_ENABLED=0
|
|
|
|
export USER="eyedeekay"
|
|
export REPO="singlefile"
|
|
export NAME="first release"
|
|
export DESC="A simple server which serves the same data for all requests"
|
|
export VERSION="0.0.1"
|
|
|
|
github-release release --user "$USER" --repo "$REPO" --name "$NAME" --tag "$VERSION" --description "$DESC"
|
|
|
|
export GOARCH=amd64 GOOS=windows
|
|
go build -o "singlefile-$GOOS-$GOARCH.exe"
|
|
export SUM=$(sha256sum "singlefile-$GOOS-$GOARCH.exe")
|
|
github-release upload --user "$USER" --repo "$REPO" --tag "$VERSION" --label "$SUM" --name "singlefile-$GOOS-$GOARCH.exe" --file "singlefile-$GOOS-$GOARCH.exe"
|
|
|
|
export GOARCH=amd64 GOOS=linux
|
|
go build -o "singlefile-$GOOS-$GOARCH"
|
|
export SUM=$(sha256sum "singlefile-$GOOS-$GOARCH")
|
|
github-release upload --user "$USER" --repo "$REPO" --tag "$VERSION" --label "$SUM" --name "singlefile-$GOOS-$GOARCH" --file "singlefile-$GOOS-$GOARCH"
|
|
|
|
export GOARCH=arm64 GOOS=linux
|
|
go build -o "singlefile-$GOOS-$GOARCH"
|
|
export SUM=$(sha256sum "singlefile-$GOOS-$GOARCH")
|
|
github-release upload --user "$USER" --repo "$REPO" --tag "$VERSION" --label "$SUM" --name "singlefile-$GOOS-$GOARCH" --file "singlefile-$GOOS-$GOARCH"
|
|
|
|
export GOARCH=amd64 GOOS=darwin
|
|
go build -o "singlefile-$GOOS-$GOARCH"
|
|
export SUM=$(sha256sum "singlefile-$GOOS-$GOARCH")
|
|
github-release upload --user "$USER" --repo "$REPO" --tag "$VERSION" --label "$SUM" --name "singlefile-$GOOS-$GOARCH" --file "singlefile-$GOOS-$GOARCH"
|
|
|
|
export GOARCH=arm64 GOOS=darwin
|
|
go build -o "singlefile-$GOOS-$GOARCH"
|
|
export SUM=$(sha256sum "singlefile-$GOOS-$GOARCH")
|
|
github-release upload --user "$USER" --repo "$REPO" --tag "$VERSION" --label "$SUM" --name "singlefile-$GOOS-$GOARCH" --file "singlefile-$GOOS-$GOARCH"
|
|
|