Skip to content

Commit

Permalink
feat: upload helm chart asset to GitHub release
Browse files Browse the repository at this point in the history
  • Loading branch information
borisrizov-zf committed Dec 18, 2023
1 parent 1a785b6 commit f7a1043
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,8 @@ jobs:
if: github.event_name != 'pull_request'
run: |
# Package MIW chart
helm package -u -d helm-charts ./charts/managed-identity-wallet
helm_package_path=$(helm package -u -d helm-charts ./charts/managed-identity-wallet | grep -o 'to: .*' | cut -d' ' -f2-)
echo "HELM_PACKAGE_PATH=$helm_package_path" >> $GITHUB_ENV
# Commit and push to gh-pages
git add helm-charts
Expand All @@ -236,3 +237,13 @@ jobs:
git commit -s -m "Release ${{ env.RELEASE_VERSION }}"
git push origin gh-pages
- name: Upload chart to GitHub release
if: github.event_name != 'pull_request'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_VERSION: ${{ env.RELEASE_VERSION }}
HELM_PACKAGE_PATH: ${{ env.HELM_PACKAGE_PATH }}
run: |
echo "::notice::Uploading chart to GitHub release"
gh release upload "v$RELEASE_VERSION" "$HELM_PACKAGE_PATH"

0 comments on commit f7a1043

Please sign in to comment.