Skip to content

changes to go-releaser to build locally #16

changes to go-releaser to build locally

changes to go-releaser to build locally #16

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@v3
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.20"
- 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/goreleaser-action@v5
with:
distribution: goreleaser
version: v1.21.2
args: --snapshot --clean
env:
GITHUB_TOKEN: ${{ secrets.GO_RELEASER_TOKEN }}