Skip to content

feat(dev-env): Setup local development environment using greenhousect… #7

feat(dev-env): Setup local development environment using greenhousect…

feat(dev-env): Setup local development environment using greenhousect… #7

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 }}