2021-01-11 01:29:16 +00:00
|
|
|
name: "Charts: Release"
|
2020-01-10 15:52:38 +00:00
|
|
|
|
2021-04-29 17:37:14 +00:00
|
|
|
concurrency: helm-release
|
|
|
|
|
2020-01-10 15:52:38 +00:00
|
|
|
on:
|
2021-03-18 12:18:14 +00:00
|
|
|
workflow_dispatch:
|
2020-01-10 15:52:38 +00:00
|
|
|
push:
|
|
|
|
branches:
|
2021-02-17 22:43:56 +00:00
|
|
|
- master
|
2020-11-24 13:30:11 +00:00
|
|
|
paths:
|
2021-02-17 22:43:56 +00:00
|
|
|
- 'charts/**'
|
|
|
|
- '!charts/**/README.md'
|
|
|
|
- '!charts/**/README.md.gotmpl'
|
2021-02-17 22:54:17 +00:00
|
|
|
- '!charts/**/README_CHANGELOG.md.gotmpl'
|
|
|
|
- '!charts/**/README_CONFIG.md.gotmpl'
|
2020-01-10 15:52:38 +00:00
|
|
|
|
|
|
|
jobs:
|
2020-11-26 13:19:28 +00:00
|
|
|
release:
|
2021-02-22 18:30:40 +00:00
|
|
|
if: "!contains(github.event.head_commit.message, '[ci-skip]')"
|
|
|
|
runs-on: ubuntu-20.04
|
2020-11-26 13:19:28 +00:00
|
|
|
steps:
|
2021-02-17 22:43:56 +00:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2020-11-26 13:19:28 +00:00
|
|
|
|
2021-02-17 22:43:56 +00:00
|
|
|
- name: Configure Git
|
|
|
|
run: |
|
|
|
|
git config user.name "$GITHUB_ACTOR"
|
|
|
|
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
|
2020-11-24 13:30:11 +00:00
|
|
|
|
2021-02-17 22:43:56 +00:00
|
|
|
- name: Install Helm
|
|
|
|
uses: azure/setup-helm@v1
|
|
|
|
with:
|
2021-03-12 13:57:27 +00:00
|
|
|
version: v3.5.3
|
2021-02-18 16:15:38 +00:00
|
|
|
|
2021-02-17 22:43:56 +00:00
|
|
|
- name: Run chart-releaser
|
2021-02-18 16:15:38 +00:00
|
|
|
uses: helm/chart-releaser-action@v1.2.0
|
2021-02-17 22:43:56 +00:00
|
|
|
with:
|
2021-03-18 12:15:55 +00:00
|
|
|
charts_dir: charts/*
|
2021-02-17 22:43:56 +00:00
|
|
|
charts_repo_url: https://k8s-at-home.com/charts/
|
|
|
|
env:
|
|
|
|
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|