-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (40 loc) · 1022 Bytes
/
release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
name: Release vega-health-check
"on":
push:
tags:
- "v*"
jobs:
release:
name: "Release for ${{ matrix.os }}-${{ matrix.arch }}"
runs-on: ubuntu-latest
permissions:
contents: write
strategy:
matrix:
arch: [amd64, arm64]
os: [linux, darwin]
env:
GOOS: ${{ matrix.os }}
GOARCH: ${{ matrix.arch }}
CGO_ENABLED: 0
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Check out code
uses: actions/checkout@v2
with:
ref: ${{ inputs.tag }}
- name: Build binary
run: go build -o dist/vega-health-check-${{ matrix.os }}-${{ matrix.arch }} ./main.go
- name: Release
uses: softprops/action-gh-release@v1
with:
files: dist/*
name: ${{ github.ref_name }}
tag_name: ${{ github.ref_name }}
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}