forked from ethereum/go-ethereum
-
Notifications
You must be signed in to change notification settings - Fork 3
71 lines (60 loc) · 1.65 KB
/
deploy.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Build and release develop
on:
push:
branches:
- 'develop'
jobs:
deploy:
strategy:
matrix:
go-version: [ 1.16 ]
platform: [ ubuntu-18.04 ]
runs-on: ${{ matrix.platform }}
steps:
- name: Delete previous tag and release
uses: dev-drprasad/delete-tag-and-release@v0.2.0
with:
delete_release: true
tag_name: v0.1.0-develop
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create tag
uses: actions/github-script@v3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
github.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: "refs/tags/v0.1.0-develop",
sha: context.sha
})
- 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: Create release
uses: softprops/action-gh-release@v1
with:
draft: false
tag_name: v0.1.0-develop
target_commitish: ${{ github.sha }}
files: |
./build/bin/pandora-*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}