forked from ethereum/go-ethereum
-
Notifications
You must be signed in to change notification settings - Fork 3
54 lines (44 loc) · 1.12 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
51
52
53
54
name: Build and release
on:
push:
tags:
- "v*"
jobs:
release:
strategy:
matrix:
go-version: [ 1.16 ]
platform: [ ubuntu-18.04, macos-11, windows-latest ]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Checkout repository and submodules
uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
id: go
- name: Install dependencies
run: |
go get -v -t -d ./...
- name: Run build
run: |
go run ./build/pan_ci.go install --pandora
- name: Prepare tag name
uses: olegtarasov/[email protected]
id: tagName
- name: Create release
uses: softprops/action-gh-release@v1
with:
name: ${{ steps.tagName.outputs.tag }}
draft: false
files: |
./build/bin/pandora-*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}