Skip to content

Commit

Permalink
feat: added release action on release (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
prsnca authored May 21, 2024
1 parent ee64370 commit b66f410
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Release Charts

on:
workflow_dispatch:
release:
types: [published]

jobs:
release:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Get Latest Tag
id: get-tag
uses: WyriHaximus/[email protected]
with:
fallback: v1.22.1

- name: Set Helm chart version from tag
uses: mikefarah/yq@master
with:
cmd: |
yq e -i '.version = "${{ steps.get-tag.outputs.tag }}"' ./helm/runtime-sensor/Chart.yaml
yq e -i '.sensor.image.tag = "${{ steps.get-tag.outputs.tag }}"' ./helm/runtime-sensor/values.yaml
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Install Helm
uses: azure/setup-helm@v3

- name: Run chart-releaser
uses: helm/[email protected]
with:
skip_existing: true
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

0 comments on commit b66f410

Please sign in to comment.