42 lines
968 B
YAML
42 lines
968 B
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- '*'
|
|
|
|
jobs:
|
|
release:
|
|
name: Release
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2.4.0
|
|
|
|
- name: Setup go
|
|
uses: actions/setup-go@v2.2.0
|
|
with:
|
|
go-version: '1.17.x'
|
|
|
|
- name: Login to Docker Hub
|
|
uses: docker/login-action@v1.13.0
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
- 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
|
|
uses: goreleaser/goreleaser-action@v2.8.1
|
|
with:
|
|
version: latest
|
|
args: release --rm-dist
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|