-
Notifications
You must be signed in to change notification settings - Fork 5
34 lines (34 loc) · 1.04 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
name: Release
on:
release:
types: [created]
jobs:
release-platform-builds:
name: Release Builds
runs-on: ubuntu-latest
container: golang:1.16.0-buster
steps:
- name: Check out code
uses: actions/checkout@v1
- name: Cache dependencies
id: cache-dependencies
uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Get dependencies
if: steps.cache-dependencies.outputs.cache-hit != 'true'
run: |
export PATH=${PATH}:`go env GOPATH`/bin
go get -v -t -d ./...
- name: Build release artifacts
run: |
BIN_VERSION=${{ github.event.release.tag_name }} make build-releases
echo $(ls ./build/dist/)
- name: Upload multiple assets to release
uses: AButler/[email protected]
with:
files: "build/dist/*"
repo-token: ${{ secrets.GITHUB_TOKEN }}