forked from bank-vaults/bank-vaults
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 973 Bytes
/
goreleaser.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
name: Goreleaser
on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+"
- "[0-9]+.[0-9]+.[0-9]+-dev.[0-9]+"
env:
GO_VERSION: 1.19.2
jobs:
docker:
name: Goreleaser
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: Install xgo
run: go install github.com/crazy-max/xgo@latest
- name: Install goreleaser
run: go install github.com/goreleaser/goreleaser@latest
- name: Run goreleaser
run: goreleaser release --clean --timeout 2h
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Run GoReleaser
# uses: goreleaser/goreleaser-action@v4
# with:
# version: latest
# args: release --clean --timeout 2h
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}