Skip to content

Commit

Permalink
Merge ded91aa into e5197ca
Browse files Browse the repository at this point in the history
  • Loading branch information
frankh authored Jul 17, 2023
2 parents e5197ca + ded91aa commit 8f5b28a
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/release-chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Release Chart

on:
pull_request:
paths:
- charts/**
- .github/workflows/release-chart.yaml
push:
branches:
- main

jobs:
release:
name: Release chart to repo
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: get deployer token
id: deployer
uses: getsentry/action-github-app-token@v2
with:
app_id: ${{ secrets.DEPLOYER_APP_ID }}
private_key: ${{ secrets.DEPLOYER_APP_PRIVATE_KEY }}

- name: Install Helm
uses: azure/setup-helm@v1
with:
version: v3.12.2

- name: Add -<sha> to version in charts/housewatch/Chart.yaml and update Chart.lock
run: |
sed -i 's/^version: \(.*\)$/version: \1-${{ github.sha }}/g' charts/housewatch/Chart.yaml
helm dependency update charts/housewatch/
- name: Configure Git
run: |
git config user.name "PostHog Deployer"
git config user.email "127202802+posthog-deployer[bot]@users.noreply.github.com"
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.4.1
if: github.repository == 'PostHog/HouseWatch'
env:
CR_TOKEN: "${{ steps.deployer.outputs.token }}"
CR_SKIP_EXISTING: "true"
with:
charts_repo_url: "https://posthog.github.io/housewatch/"

0 comments on commit 8f5b28a

Please sign in to comment.