-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (56 loc) · 1.33 KB
/
Copy pathrelease.yml
File metadata and controls
66 lines (56 loc) · 1.33 KB
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
name: Release
on:
push:
tags:
- 'v*.*.*'
permissions:
contents: write
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Run tests
run: make test
release:
name: Build and Release
runs-on: ubuntu-latest
needs: [test]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Build all platforms
run: make build-all
env:
VERSION: ${{ github.ref_name }}
- name: Generate checksums
run: |
cd bin
sha256sum pixie-* > checksums.txt
cat checksums.txt
- name: Create Release
uses: softprops/action-gh-release@v2
with:
files: |
bin/pixie-linux-amd64
bin/pixie-linux-arm64
bin/pixie-darwin-amd64
bin/pixie-darwin-arm64
bin/checksums.txt
generate_release_notes: true
draft: false
prerelease: ${{ contains(github.ref_name, '-') }}