cleanup: define required Go version just once (#861)
See https://github.com/ooni/probe/issues/2217
This commit is contained in:
parent
6a0ae5c70b
commit
3cc2ce0b81
22 changed files with 169 additions and 57 deletions
12
.github/workflows/tarball.yml
vendored
12
.github/workflows/tarball.yml
vendored
|
|
@ -16,15 +16,21 @@ jobs:
|
|||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v2
|
||||
|
||||
- name: Get GOVERSION content
|
||||
id: goversion
|
||||
run: echo ::set-output name=version::$(cat GOVERSION)
|
||||
|
||||
- uses: actions/setup-go@v1
|
||||
with:
|
||||
go-version: "1.18.3"
|
||||
go-version: "${{ steps.goversion.outputs.version }}"
|
||||
|
||||
- name: Generate release tarball
|
||||
run: |
|
||||
VERSION=${GITHUB_REF_NAME#v}
|
||||
go mod vendor
|
||||
tar czf ooni-probe-cli-${VERSION}.tar.gz --transform "s,^,ooni-probe-cli-${VERSION}/," *
|
||||
|
||||
- name: Upload release tarball
|
||||
run: |
|
||||
gh release create -p $GITHUB_REF_NAME --target $GITHUB_SHA || true
|
||||
|
|
|
|||
Loading…
Reference in a new issue