-
Notifications
You must be signed in to change notification settings - Fork 2
67 lines (64 loc) · 1.58 KB
/
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Release
on:
push:
tags:
- "v*.*.*"
jobs:
build:
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
include:
- os: macos-latest
arch: amd64
SIGSCAN_TARGET: sigscan-darwin-amd64
- os: ubuntu-latest
arch: amd64
SIGSCAN_TARGET: sigscan-linux-amd64
- os: windows-latest
arch: amd64
SIGSCAN_TARGET: sigscan-windows-amd64.exe
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: '1.23.1'
- uses: actions/checkout@v3
- name: Go Build
run: make sigscan && mv ./sigscan ./${{ matrix.SIGSCAN_TARGET }}
- uses: actions/upload-artifact@v3
with:
name: artifacts
path: sigscan-*
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Documentation Build
run: go run ./hack/generate-manual
- uses: actions/upload-artifact@v3
with:
name: man-pages
path: man/
release:
needs:
- build
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
- name: Rename Artifacts
run: |
mkdir man
mv man-pages/* man/
- name: Release
uses: softprops/action-gh-release@v1
with:
draft: false
body_path: CHANGELOG.md
files: |
artifacts/sigscan-*
man/*