Skip to content

feat(deps): update github.com/spf13/cobra ( v1.8.1 → v1.9.1 ) #38

feat(deps): update github.com/spf13/cobra ( v1.8.1 → v1.9.1 )

feat(deps): update github.com/spf13/cobra ( v1.8.1 → v1.9.1 ) #38

Workflow file for this run

---
name: Build
on:
push:
branches:
- "main"
tags:
- "v*"
pull_request:
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
permissions:
contents: write
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Fetch tag information
run: git fetch --force --tags
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ">=1.23"
cache: true
- name: Install go-revive
run: |
go install github.com/mgechev/revive@latest
- name: Run pre-commit
uses: pre-commit/[email protected]
- name: Prepare release
# Create a release when a tag is pushed
if: success() && startsWith(github.ref, 'refs/tags/')
run: |
make release
- name: Create GitHub release
# Create a release when a tag is pushed
if: success() && startsWith(github.ref, 'refs/tags/')
uses: ncipollo/release-action@v1
with:
artifacts: "dist/KoboRoot.tgz"
generateReleaseNotes: true