-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (42 loc) · 1.17 KB
/
release.yml
File metadata and controls
45 lines (42 loc) · 1.17 KB
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
---
name: Release
on:
workflow_run:
workflows: ["Build and test"]
branches: [main]
types:
- completed
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
with:
fetch-depth: '0'
- name: Bump version and push tag
uses: anothrNick/github-tag-action@1.75.0
id: version
env:
GITHUB_TOKEN: ${{ github.token }}
WITH_V: true
DEFAULT_BUMP: patch
DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
- name: Setup Go
uses: arnested/setup-go@rc
with:
go-version-file: go.mod
- run: go version
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v7
with:
args: release
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Post status to Google Chat
if: ${{ always() }}
uses: containrrr/shoutrrr-action@v1
with:
url: "${{ secrets.WATCHTOWER_NOTIFICATION_URL }}"
message: "Released `${{ github.repository }}`@`${{ github.sha }}` as ${{ steps.version.outputs.tag }}: *${{ job.status }}*."