feat(dev-env): Setup local development environment using greenhousect… #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |