Skip to content

(fix): create namespace using kubeconfig (#507) #8

(fix): create namespace using kubeconfig (#507)

(fix): create namespace using kubeconfig (#507) #8

name: "Build greenhousectl"
on:
push:
tags:
- '**'
paths:
- cmd/greenhousectl/**
- pkg/cmd/**
permissions:
contents: write # required to create a release
jobs:
build:
runs-on: [ default ]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
token: ${{ secrets.GITHUB_TOKEN }}
- name: lint & test
run: make check
- name: cleanup autogenerated files
run: git checkout .
- name: release
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: ${{ vars.GITHUB_SHA }}
args: release --config .github/.goreleaser.yaml --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}