generated from meshery/meshery
-
Notifications
You must be signed in to change notification settings - Fork 15
46 lines (38 loc) · 1.34 KB
/
build-and-release-snapshot-plugin.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Kanvas Snapshot Build & Release
on:
release:
types: [published]
workflow_dispatch:
pull_request: # Add this to trigger on PR events
branches:
- install-script-enhancement
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')
runs-on: macos-latest
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 1
ref: ${{ inputs.branch }}
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.21"
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.59
working-directory: .
args: --timeout 10m --verbose
skip-cache: true
- name: Run GoReleaser with tag
uses: goreleaser/goreleaser-action@v6
with:
version: 2 # Use latest GoReleaser action version
args: release --clean --skip validate -f .github/.goreleaser.yml # Corrected filename to root
env:
RELEASE_CHANNEL: "stable"
PROVIDER_TOKEN: ${{ secrets.PROVIDER_TOKEN }}
GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}