Skip to content

Merge pull request #24 from kubero-dev/feature/refactor-cli #59

Merge pull request #24 from kubero-dev/feature/refactor-cli

Merge pull request #24 from kubero-dev/feature/refactor-cli #59

Workflow file for this run

name: goreleaser
on:
push:
#branches:
# - master
# Publish `v1.2.3` tags as releases.
tags:
- v*
workflow_dispatch:
env:
IMAGE_NAME: klustair-cli
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
-
name: Set version
run: |
echo $(git describe --tags --abbrev=0) > cmd/VERSION
-
name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}