mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-05-21 02:40:09 +00:00
55 lines
1.6 KiB
YAML
55 lines
1.6 KiB
YAML
|
|
name: Helm Chart Releaser
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- 'nextcloud-aio-helm-chart/**'
|
|
|
|
jobs:
|
|
release:
|
|
# Do not run this workflow on forked repositories, as they might not have the `gh-pages` branch created, or might
|
|
# want to use it for other purposes than publishing helm charts
|
|
if: github.repository == 'nextcloud/all-in-one'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
|
|
- name: Turnstyle
|
|
uses: softprops/turnstyle@e15e934b3f69ee283ba389ea05c8886baa656d93 # v2
|
|
with:
|
|
continue-after-seconds: 180
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- 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@dda3372f752e03dde6b3237bc9431cdc2f7a02a2 # v5.0.0
|
|
with:
|
|
version: v3.6.3
|
|
|
|
- name: Run Helm Lint
|
|
run: |
|
|
helm lint ./nextcloud-aio-helm-chart
|
|
|
|
- name: Run chart-releaser
|
|
uses: helm/chart-releaser-action@cae68fefc6b5f367a0275617c9f83181ba54714f # v1.7.0
|
|
with:
|
|
mark_as_latest: false
|
|
charts_dir: .
|
|
env:
|
|
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
|
CR_RELEASE_NAME_TEMPLATE: "helm-chart-{{ .Version }}"
|
|
CR_SKIP_EXISTING: true
|