Skip to content

Commit ac0ade2

Browse files
committed
publish as artifact
1 parent 313d329 commit ac0ade2

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed
Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- ktool
77
paths:
88
- 'kubectl-ktool.sh'
9+
- '.github/workflows/publish-package.yaml' # Rerun if the workflow changes
910

1011
jobs:
1112
release:
@@ -39,7 +40,7 @@ jobs:
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
@@ -48,11 +49,8 @@ jobs:
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

0 commit comments

Comments
 (0)