Skip to content

Commit

Permalink
update build workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Eti Ijeoma <ijayeti@gmail.com>
  • Loading branch information
Aijeyomah committed Nov 3, 2024
1 parent b782104 commit 9b56cb5
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/build-and-release-snapshot-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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

0 comments on commit 9b56cb5

Please sign in to comment.