1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-31 03:45:17 +00:00
kyverno/.github/workflows/helm-release.yaml
georgekaz c73a14eba2
add tests before release (#2174)
Signed-off-by: George Kaz <egeorgekaz@gmail.com>
2021-07-20 17:06:56 -07:00

48 lines
No EOL
1 KiB
YAML

name: helm-release
on:
push:
branches:
- 'main'
paths:
- 'charts/kyverno/Chart.yaml'
- '.github/workflows/helm-release.yaml'
jobs:
helm-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Unshallow
run: git fetch --prune --unshallow
- uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Set up chart-testing
uses: helm/chart-testing-action@v2.0.1
- name: Run chart-testing (lint)
run: ct lint --target-branch=main --check-version-increment=false
create-release:
runs-on: ubuntu-latest
needs: helm-tests
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install Helm
uses: azure/setup-helm@v1
with:
version: v3.4.1
- name: Run chart-releaser
uses: stefanprodan/helm-gh-pages@v1.4.1
with:
token: "${{ secrets.GITHUB_TOKEN }}"
linting: off