mirror of
https://github.com/mastodon/chart
synced 2025-05-18 04:53:21 +00:00
41 lines
924 B
YAML
41 lines
924 B
YAML
name: Release Chart
|
|
concurrency: chart_releaser
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- 'charts/**'
|
|
|
|
jobs:
|
|
release:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Fetch history
|
|
run: git fetch --prune --unshallow
|
|
|
|
- name: Configure Git
|
|
run: |
|
|
git config user.name "$GITHUB_ACTOR"
|
|
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
|
|
|
|
# See https://github.com/helm/chart-releaser-action/issues/6
|
|
- name: Set up Helm
|
|
uses: azure/setup-helm@v3.5
|
|
with:
|
|
version: v3.11.1
|
|
|
|
- name: Add dependency chart repos
|
|
run: |
|
|
helm dep update charts/mastodon
|
|
|
|
- name: Run chart-releaser
|
|
uses: helm/chart-releaser-action@v1.5.0
|
|
env:
|
|
CR_GENERATE_RELEASE_NOTES: true
|
|
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|