-
Notifications
You must be signed in to change notification settings - Fork 234
46 lines (46 loc) · 1.27 KB
/
make-release.yml
File metadata and controls
46 lines (46 loc) · 1.27 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
on:
push:
tags:
- v*
name: make release
jobs:
makerelease:
name: make release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: install deps
run: |
sudo apt install -y \
libseccomp-dev \
parallel \
uidmap \
pigz \
--no-install-recommends
shell: bash
- uses: actions/setup-go@v2
with:
go-version: '^1.13.1' # The Go version to download (if necessary) and use.
- name: install go tools
run: |
go get golang.org/x/lint/golint
go get honnef.co/go/tools/cmd/staticcheck
go get -u github.com/go-bindata/go-bindata/go-bindata
shell: bash
- name: make release
run: make release
shell: bash
- name: upload assets
uses: docker://r.j3ss.co/github-dev
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
entrypoint: bash
args: -c "upload-assets ./cross/*"
- name: update release body
uses: docker://r.j3ss.co/pepper
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
entrypoint: sh
args: -c "pepper release --repo $GITHUB_REPOSITORY -d --nouser"