diff --git a/.github/workflows/build-and-release-snapshot-plugin.yml b/.github/workflows/build-and-release-snapshot-plugin.yml index e43de11f6c..ae4a4d9404 100644 --- a/.github/workflows/build-and-release-snapshot-plugin.yml +++ b/.github/workflows/build-and-release-snapshot-plugin.yml @@ -5,6 +5,7 @@ on: types: [published] workflow_dispatch: + jobs: release: if: github.repository == 'meshery/helm-kanvas-snapshot' && startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, 'patch') && !contains(github.ref, 'alpha') && !contains(github.ref, 'beta') && !contains(github.ref, 'rc') @@ -20,21 +21,21 @@ jobs: uses: actions/setup-go@v5 with: go-version: "1.21" - - - name: golangci-lint + + - name: Run golangci-lint uses: golangci/golangci-lint-action@v6 with: version: v1.59 - working-directory: ./cmd/kanvas-snapshot + working-directory: . args: --timeout 10m --verbose skip-cache: true - name: Run GoReleaser with tag uses: goreleaser/goreleaser-action@v6 + with: + version: latest # Use latest GoReleaser action version + args: release --clean --skip-validate -f goreleaser.yml # Corrected filename to root env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} RELEASE_CHANNEL: "stable" PROVIDER_TOKEN: ${{ secrets.PROVIDER_TOKEN }} - with: - version: 2 - args: release --clean --skip validate -f .github/.goreleaser.yml