forked from ava-labs/avalanchego
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (31 loc) · 974 Bytes
/
build.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
# https://goreleaser.com/ci/actions/
# TODO: replace other build github actions
name: Build on supported platforms
on:
push:
permissions:
contents: write
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
version: latest
# TODO: automate github release page announce and artifact uploads
# https://goreleaser.com/cmd/goreleaser_release/
args: release --rm-dist --skip-announce --skip-publish
# to automate release announcement
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret
# env:
# GITHUB_TOKEN: ...