-
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 873 Bytes
/
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
name: release
on:
workflow_dispatch:
push:
branches:
- 'dev'
- 'main'
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
outputs:
version: ${{ steps.semrel.outputs.version }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.23
- uses: go-semantic-release/action@v1
id: semrel
with:
hooks: goreleaser
custom-arguments: '--commit-analyzer-opt patch_release_rules=fix,ref,build'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Update Docker Hub Description
uses: peter-evans/dockerhub-description@v4
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
repository: coolapso/twitch-exporter