Skip to content

Commit

Permalink
fix assets and ad github token to release using hub
Browse files Browse the repository at this point in the history
  • Loading branch information
merlos committed Nov 29, 2023
1 parent 490d85c commit 7774ed8
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/publish-helm-charts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ on:
push:
tags: #["*"]
# Example v0.1.1
- v[0-9]+.[0-9]+.[0-9]+
-

# Manual
workflow_dispatch:

Expand Down Expand Up @@ -72,10 +73,12 @@ jobs:
DEST_DIR=.cr-release-packages
set -x
assets=()
for asset in $DEST_DIR; do
assets+=("-a" "$asset")
for asset in `ls $DEST_DIR`; do
assets+=("-a" "$DEST_DIR/$asset")
done
hub release create "${assets[@]}" -m "${{ github.ref }}" "${{ github.ref }}"
cat charts/
hub release create "${assets[@]}" --message "${{ github.ref }}" "v0.0.1"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token

Expand Down

0 comments on commit 7774ed8

Please sign in to comment.