Skip to content

Commit

Permalink
add chart-releaser-action to gha workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoblitt committed Apr 29, 2024
1 parent 68f5e75 commit 843d682
Showing 1 changed file with 25 additions and 6 deletions.
31 changes: 25 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,33 @@ jobs:
- name: Run helm lint
run: cd charts/gnocpush && helm lint .

gh-release:
name: Create GitHub Release
needs: oci_image
if: startsWith(github.ref, 'refs/tags/')

chart-release:
# only run when merged to main
if: github.ref == 'refs/heads/main'
name: Helm Chart Release
needs:
- oci_image
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
- name: Install Helm
uses: azure/setup-helm@v4
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

- name: Release
uses: softprops/action-gh-release@v1
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.6.0
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

0 comments on commit 843d682

Please sign in to comment.