diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..d7e38c7 --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,15 @@ +name: publish +on: + release: + types: + - published +jobs: + krew: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Update new version of plugin in krew-index + uses: rajatjindal/krew-release-bot@v0.0.40 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index aa37cfe..0072524 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -20,6 +20,4 @@ jobs: - name: Run GoReleaser run: make release env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Update new version of plugin in krew-index - uses: rajatjindal/krew-release-bot@v0.0.40 \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file