-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (36 loc) · 1006 Bytes
/
release.yaml
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
on:
release:
types: [created]
jobs:
get-tags:
runs-on: ubuntu-latest
steps:
- id: commit
uses: pr-mpt/actions-commit-hash@v2
outputs:
short-commit: ${{steps.commit.outputs.short}}
release:
name: make release
needs: get-tags
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, darwin]
goarch: [amd64, arm64]
steps:
- uses: actions/checkout@v3
- uses: wangyoucao577/go-release-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
binary_name: "kubectl-history"
ldflags: "-X github.com/wd/kubectl-history/cmd.Version=${{github.ref_name}}-${{needs.get-tags.outputs.short-commit}}"
extra_files: LICENSE
update-krew:
runs-on: ubuntu-latest
name: Update new version in krew-index
needs: release
steps:
- uses: actions/checkout@v3
- uses: rajatjindal/[email protected]