forked from tierpod/dmarc-report-converter
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 818 Bytes
/
build.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
name: Build
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.22
uses: actions/setup-go@v5
with:
go-version: "1.22"
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Test and lint
run: |
go install honnef.co/go/tools/cmd/staticcheck@latest
make test
- name: Build
run: |
echo GITHUB_REF=$GITHUB_REF GITHUB_SHA=$GITHUB_SHA
make release
- name: Create release and upload assets if tag is defined
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: dist/*.tar.gz