-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 1005 Bytes
/
Copy pathrelease.yml
File metadata and controls
39 lines (37 loc) · 1005 Bytes
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
---
name: release
on: # yamllint disable-line rule:truthy
push:
tags:
- '*'
jobs:
build:
name: Build and release binaries
runs-on: ubuntu-latest
permissions:
packages: write
contents: write
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 1
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
- name: Install dependencies
run: go mod download
- name: Install golangci-lint
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/HEAD/install.sh | \
sh -s -- -b $(go env GOPATH)/bin v2.10.1
- name: Build binaries
run: make all
- name: Create SHA256 checksums
run: make checksum
- name: Upload binaries and checksums
uses: alexellis/upload-assets@0.4.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
asset_paths: '["bin/*"]'