Skip to content

blackbox-prober-0.1.22 #24

blackbox-prober-0.1.22

blackbox-prober-0.1.22 #24

Workflow file for this run

name: Release
on:
release:
types: [published]
jobs:
build:
name: Publish artifacts
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.16
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
with:
ref: ${{ github.ref }}
- name: Get dependencies
run: |
go get -v -t -d ./...
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
- name: Build
run: make build_linux
- name: Package
run: tar -czvf blackbox-prober.tar.gz build/
- name: Upload
uses: fnkr/github-action-ghr@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GHR_PATH: blackbox-prober.tar.gz