Skip to content

Commit

Permalink
Add chart publish workflow (#3)
Browse files Browse the repository at this point in the history
* Add chart publish workflow

* renaming some workflows to match tense

---------

Co-authored-by: Komail Kanjee <1796298+KomailKanjee@users.noreply.github.com>
  • Loading branch information
komailo and komailo authored Nov 17, 2024
1 parent 7be8d7a commit 8614b02
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Linting and Testing
name: Chart Lint and Test
on: pull_request

permissions:
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/chart-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
## Reference: https://github.com/helm/chart-releaser-action
name: Release Charts

on:
push:
branches:
- main

jobs:
release:
# depending on default permission settings for your org (contents being read-only or read-write for workloads), you will have to add permissions
# see: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
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: Run chart-releaser
uses: helm/chart-releaser-action@v1.6.0
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

0 comments on commit 8614b02

Please sign in to comment.