-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (39 loc) · 1.13 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
name: release
on:
push:
tags:
- '*'
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
# required for GoReleaser
fetch-depth: 0
# required for GoReleaser
- name: Fetch
run: git fetch --force --tags
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
cache: true
- name: Setup GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
args: release --clean
env:
# https://goreleaser.com/errors/resource-not-accessible-by-integration
GITHUB_TOKEN: ${{ secrets.GORELEASER_TOKEN }}
- name: Notification
uses: hckops/actions/[email protected]
with:
action: create-message
webhook-url: ${{ secrets.DISCORD_WEBHOOK_URL }}
message: "> Repository: **${{ github.repository }}**\\n> Version:\\t\\t ${{ github.ref_name }}\\n> Status:\\t\\t **NEW release**"