-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 945 Bytes
/
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
name: Release
permissions:
contents: write
on:
push:
tags: 'v*'
jobs:
release:
name: Upload releases
runs-on: ubuntu-latest
if: "!contains(github.ref, '-')" # skip prereleases
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_PERSONAL_AUTH_TOKEN: ${{ secrets.HOMEBREW_PERSONAL_AUTH_TOKEN }}
# - name: Docker push on master
# run: |
# # Build & publish on master
# echo "${{ secrets.GH_TOKEN }}" | docker login ghcr.io -u USERNAME --password-stdin
# TAG=${GITHUB_REF_NAME} make docker_push
# TAG=latest make docker_push