Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit fce6d78

Browse files
authored
Merge pull request #117 from gtardif/auto-release
Release CI config
2 parents 04e6023 + 5c873c1 commit fce6d78

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/release.yaml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: releaser
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
jobs:
8+
upload-release:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Set up Go 1.14
12+
uses: actions/setup-go@v1
13+
with:
14+
go-version: 1.14
15+
id: go
16+
17+
- name: Checkout code into the Go module directory
18+
uses: actions/checkout@v2
19+
20+
- uses: actions/cache@v1
21+
with:
22+
path: ~/go/pkg/mod
23+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
24+
restore-keys: |
25+
${{ runner.os }}-go-
26+
27+
- name: Build
28+
run: make -f builder.Makefile cross
29+
30+
- uses: ncipollo/release-action@v1
31+
with:
32+
artifacts: "bin/*"
33+
prerelease: true
34+
token: ${{ secrets.GITHUB_TOKEN }}
35+

0 commit comments

Comments
 (0)