Skip to content

Commit a26a1e4

Browse files
committed
ci: separate release workflow from publish
1 parent 174da10 commit a26a1e4

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

.github/workflows/publish.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: publish
2+
on:
3+
release:
4+
types:
5+
- published
6+
jobs:
7+
krew:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout repository
11+
uses: actions/checkout@v2
12+
with:
13+
fetch-depth: 0
14+
- name: Update new version of plugin in krew-index
15+
uses: rajatjindal/[email protected]

.github/workflows/release.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,4 @@ jobs:
2020
- name: Run GoReleaser
2121
run: make release
2222
env:
23-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24-
- name: Update new version of plugin in krew-index
25-
uses: rajatjindal/[email protected]
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)