Skip to content

Commit

Permalink
Add harbor-helm release workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Yang Jiao <yang.jiao@broadcom.com>
  • Loading branch information
YangJiao0817 committed Dec 21, 2023
1 parent 7d045cb commit 35b6ef1
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/publish_release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Publish Release

on:
push:
tags:
- 'v*.*.*'

jobs:
release:
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
- name: Setup Helm
uses: azure/setup-helm@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
id: install
- name: Helm Package
run: |
echo "PACKAGE_PATH=$(helm package ../harbor-helm | awk '{print $NF}')" >> $GITHUB_ENV
- name: Release
uses: softprops/action-gh-release@v1
with:
files: ${{ env.PACKAGE_PATH }}

0 comments on commit 35b6ef1

Please sign in to comment.