Skip to content

release: version 0.4.0 #13

release: version 0.4.0

release: version 0.4.0 #13

Workflow file for this run

name: Release
on:
push:
tags:
- "v*.*.*"
workflow_dispatch:
inputs:
goreleaserArgs:
required: false
type: string
jobs:
publish-server:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: "1.16"
- name: Login to DockerHub
uses: docker/login-action@v1
with:
registry: docker.io
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Run GoReleaser
uses: goreleaser/[email protected]
with:
distribution: goreleaser
version: 1.9.2
args: --rm-dist ${{ inputs.goreleaserArgs }}
env:
GITHUB_TOKEN: ${{ secrets.GO_RELEASER_TOKEN }}