-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (45 loc) · 1.26 KB
/
release.yaml
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
name: Release
on:
push:
tags:
- '*'
# on:
# push:
# branches:
# - main
env:
GOLANG_VERSION: 1.16
jobs:
build-tag-release:
name: Build, tag, and release assets
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
# - name: Setup release please
# uses: google-github-actions/release-please-action@v2
# id: release
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# release-type: simple
# package-name: stackie
# - name: Retrieve latest tag
# run: echo "TAG=$(cat version.txt)" >> $GITHUB_ENV
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: ${{ env.GOLANG_VERSION }}
- name: Setup build cache
uses: actions/[email protected]
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-go-
- name: Release
#if: ${{ steps.release.outputs.release_created }}
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --config=.github/goreleaser.yml --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.BJERKBOT_GITHUB_TOKEN }}