File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change 66 - ktool
77 paths :
88 - ' kubectl-ktool.sh'
9+ - ' .github/workflows/publish-package.yaml' # Rerun if the workflow changes
910
1011jobs :
1112 release :
3940 - name : Create git tag (if not exists)
4041 id : tag
4142 run : |
42- version="${{ steps.extract_version.outputs.version }}"
43+ version="ktool- ${{ steps.extract_version.outputs.version }}"
4344 if git rev-parse "$version" >/dev/null 2>&1; then
4445 echo "Tag $version already exists"
4546 else
4849 echo "Tag $version created and pushed"
4950 fi
5051
51- - name : Create GitHub Release
52- uses : softprops/action-gh-release@6cbd405e2c4e67a21c47fa9e383d020e4e28b836
52+ - name : Upload script as artifact
53+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
5354 with :
54- tag_name : ${{ steps.extract_version.outputs.version }}
55- name : ${{ steps.extract_version.outputs.version }}
56- files : kubectl-ktool.sh
57- env :
58- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
55+ name : kubectl-ktool-${{ steps.extract_version.outputs.version }}
56+ path : ./kubectl-ktool.sh
You can’t perform that action at this time.
0 commit comments