Skip to content

Merge pull request #3 from kazhuravlev/cleanup-code #12

Merge pull request #3 from kazhuravlev/cleanup-code

Merge pull request #3 from kazhuravlev/cleanup-code #12

Workflow file for this run

name: goreleaser
on:
push:
tags:
- '*'
permissions:
contents: write
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Fetch sources
run: git fetch --force --tags
- name: Setup golang
uses: actions/setup-go@v3
with:
go-version: '>=1.19.1'
cache: true
- name: Log in to Docker Hub
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Release and Publish
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}