2020-03-21 21:09:15 +01:00
|
|
|
name: Release
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- '*'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
release:
|
|
|
|
name: Release
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-09-14 11:37:38 +02:00
|
|
|
- name: Checkout
|
2021-11-03 14:04:13 +01:00
|
|
|
uses: actions/checkout@v2.4.0
|
2021-09-14 11:37:38 +02:00
|
|
|
|
|
|
|
- name: Setup go
|
2022-02-16 16:42:06 +01:00
|
|
|
uses: actions/setup-go@v2.2.0
|
2020-03-21 21:09:15 +01:00
|
|
|
with:
|
2022-02-20 12:32:34 +01:00
|
|
|
go-version: '1.17.x'
|
2021-09-14 11:37:38 +02:00
|
|
|
|
|
|
|
- name: Login to Docker Hub
|
2022-02-17 16:39:08 +01:00
|
|
|
uses: docker/login-action@v1.13.0
|
2020-03-21 21:09:15 +01:00
|
|
|
with:
|
2021-09-14 11:37:38 +02:00
|
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
|
2022-02-20 12:35:53 +01:00
|
|
|
- name: Publish Changelog
|
|
|
|
uses: release-drafter/release-drafter@v5.18.1
|
|
|
|
with:
|
|
|
|
publish: true
|
|
|
|
name: ${{ github.ref_name }}
|
|
|
|
tag: ${{ github.ref }}
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
|
|
- name: Build Releases
|
2022-01-23 23:30:12 +01:00
|
|
|
uses: goreleaser/goreleaser-action@v2.8.1
|
2020-03-21 21:09:15 +01:00
|
|
|
with:
|
2021-09-14 11:37:38 +02:00
|
|
|
version: latest
|
|
|
|
args: release --rm-dist
|
2020-03-21 22:30:41 +01:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|