-
-
Notifications
You must be signed in to change notification settings - Fork 34
50 lines (48 loc) · 1.36 KB
/
release.yml
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
47
48
49
50
name: Release with artifact
on:
push:
tags:
- 'v*.*.*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.23.5
- name: Run tests
run: |
make plugin_ci
make test
- name: Lint programs
uses: golangci/golangci-lint-action@v6
with:
version: v1.63
skip-cache: true
skip-save-cache: true
install-mode: binary
- name: Set version
id: version
run: |
VERSION=$(echo ${{ github.ref }} | sed -e "s#refs/tags/##g")
echo "version=$VERSION" >> $GITHUB_OUTPUT
- name: Build platform binaries
run: VERSION=${{ steps.version.outputs.version }} make all
- name: Create Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
dist/falco-linux-amd64
dist/falco-linux-arm64
dist/falco-darwin-amd64
dist/falco-darwin-arm64
dist/falco-linux-amd64.tar.gz
dist/falco-linux-arm64.tar.gz
dist/falco-darwin-amd64.tar.gz
dist/falco-darwin-arm64.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}