Skip to content

Commit

Permalink
sh update also release update
Browse files Browse the repository at this point in the history
  • Loading branch information
bedirhangull committed Dec 17, 2024
1 parent 8d6c5ac commit 98ff45b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 13 deletions.
38 changes: 25 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 modified scripts/update-krew-yaml.sh
100755 → 100644
Empty file.

0 comments on commit 98ff45b

Please sign in to comment.