forked from fopina/privatebin
-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (47 loc) · 1.3 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-ignore:
- '**'
tags:
- 'v*.*.*'
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@master
-
name: Set up Go
uses: actions/setup-go@master
with:
go-version: 1.13.x
-
name: Prepare
id: prepare
run: |
TAG=${GITHUB_REF#refs/tags/v}
echo ::set-output name=tag_name::${TAG}
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v1
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: v${{ steps.prepare.outputs.tag_name }}
-
name: Update homebrew-tap
uses: fopina/homebrew-tap@bump-action-v1
with:
token: ${{ secrets.PAT }}
formula_class: Privatebin
formula_file: privatebin
description: PrivateBin CLI written in Golang
url: https://github.com/safing/go-privatebin/releases/download/v${{ steps.prepare.outputs.tag_name }}/pbin_darwin_x86_64.tar.gz
license: ''
version: '${{ steps.prepare.outputs.tag_name }}'
bin: pbin
release: ./dist/pbin_darwin_x86_64.tar.gz