Skip to content

Merge pull request #42 from codefresh-io/workflows-v3.4.4-cap-CR-20826 #39

Merge pull request #42 from codefresh-io/workflows-v3.4.4-cap-CR-20826

Merge pull request #42 from codefresh-io/workflows-v3.4.4-cap-CR-20826 #39

Workflow file for this run

name: Chart Publish
on:
push:
branches:
- argo-workflows
permissions:
contents: read
jobs:
publish:
permissions:
contents: write # for helm/chart-releaser-action to push chart release and create a release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Helm
uses: azure/setup-helm@v3
with:
version: v3.10.1 # Also update in lint-and-test.yaml
- name: Add dependency chart repos
run: |
helm repo add dandydeveloper https://dandydeveloper.github.io/charts/
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Package chart
run: |
rm -rf .cr-release-packages
mkdir .cr-release-packages
helm package charts/argo-workflows -u -d .cr-release-packages/
- name: Run chart-releaser
uses: helm/chart-releaser-action@main
with:
config: "./.github/configs/cr.yaml"
skip_packaging: true
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"