name: clustertool-go-release concurrency: group: ${{ github.workflow }}-${{ github.ref }} on: push: tags: - "*" paths: - 'clustertool/**' jobs: goreleaser: runs-on: actions-runners steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 with: fetch-depth: 0 - uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6 with: go-version: stable cache: true cache-dependency-path: | **/go.mod **/go.sum # - name: Install Syft # run: sudo curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin - uses: goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a # v6 with: args: release --clean distribution: goreleaser # or 'goreleaser-pro' version: "~> v2" # or 'latest', 'nightly', semver env: GITHUB_TOKEN: "${{ secrets.BOT_TOKEN }}"