generated from replicatedhq/krew-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8d6c5ac
commit 98ff45b
Showing
2 changed files
with
25 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,27 +14,39 @@ jobs: | |
uses: actions/checkout@master | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Go | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: 1.20 | ||
go-version: '1.20' | ||
|
||
- name: Ensure script is executable | ||
run: | | ||
chmod +x scripts/update-krew-yaml.sh | ||
ls -l scripts/update-krew-yaml.sh | ||
- name: GoReleaser | ||
uses: goreleaser/goreleaser-action@v1 | ||
uses: goreleaser/goreleaser-action@v4 | ||
with: | ||
distribution: goreleaser | ||
version: latest | ||
args: release | ||
args: release --clean | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Grant execute permission to update-krew-yaml.sh | ||
run: chmod +x scripts/update-krew-yaml.sh | ||
- name: Update krew.yaml | ||
run: ./scripts/update-krew-yaml.sh | ||
- name: Commit and push updated krew.yaml | ||
|
||
- name: Run update script | ||
run: | | ||
pwd | ||
ls -l scripts/ | ||
./scripts/update-krew-yaml.sh | ||
- name: Commit and push updated Krew manifest | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git add krew.yaml | ||
git commit -m "Update krew.yaml for release ${{ github.ref }}" | ||
git push | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git add deploy/krew/plugin.yaml | ||
git commit -m "Update Krew manifest for release ${GITHUB_REF#refs/tags/}" | ||
git push | ||
- name: Update new version in krew-index | ||
uses: rajatjindal/[email protected] |
Empty file.