-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 981 Bytes
/
realease.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
on:
push:
tags:
- v*
jobs:
releases-matrix:
name: Release Go Binary
runs-on: ubuntu-latest
permissions:
contents: write
strategy:
max-parallel: 1
matrix:
include:
- goarch: amd64
goos: darwin
- goarch: arm64
goos: darwin
- goarch: amd64
goos: linux
- goarch: arm64
goos: linux
- goarch: amd64
goos: windows
steps:
- name: Show environment
run: export
- uses: actions/checkout@v3
- uses: ncipollo/release-action@v1
with:
allowUpdates: true
token: ${{ secrets.GITHUB_TOKEN }}
- uses: wangyoucao577/go-release-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
build_command: "make"
binary_name: "2fa"
extra_files: 2fa