-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (41 loc) · 1.05 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: release
on:
push:
branches:
- main
env:
go-version: 1.17
jobs:
build_test_tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: '0'
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ env.go-version }}
- name: Build
run: go build -v ./...
- name: Test
run: sudo go test -v -cover ./...
- id: bump
name: Bump version and push tag
uses: anothrNick/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
RELEASE_BRANCHES: main
- name: build and package
run: bash ./package_release.sh
- uses: "marvinpinto/[email protected]"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
title: ${{ steps.bump.outputs.new_tag }}
automatic_release_tag: ${{ steps.bump.outputs.new_tag }}
files: |
LICENSE
./artifacts/*.zip
./artifacts/*.tar.gz