-
Notifications
You must be signed in to change notification settings - Fork 66
47 lines (42 loc) · 1.62 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
47
on:
push:
branches:
- master
name: release
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: GoogleCloudPlatform/[email protected]
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: simple
package-name: multi-gitter
changelog-types: '[{"type":"feat","section":"Features","hidden":false},{"type":"fix","section":"Bug Fixes","hidden":false},{"type":"chore","section":"Miscellaneous","hidden":false},{"type":"dep","section":"Dependencies","hidden":false}]'
- uses: actions/checkout@v3
with:
fetch-depth: 0
if: ${{ steps.release.outputs.release_created }}
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "^1.16.0"
if: ${{ steps.release.outputs.release_created }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GENERAL_GITHUB_SECRET }} # The tokens needs access to another repo, so the secret.GITHUB_SECRET won't suffice
FURY_TOKEN: ${{ secrets.FURY_TOKEN }} # Gemfury token
if: ${{ steps.release.outputs.release_created }}
- name: Comment on prs and issues
uses: apexskier/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
comment-template:
Included in release {release_link} 🎉
skip-label: "autorelease: tagged,autorelease: pending"
if: ${{ steps.release.outputs.release_created }}