Release Charts on demand #29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Charts on demand | |
on: | |
workflow_dispatch: | |
inputs: | |
branch: | |
description: 'Release branch' | |
required: true | |
jobs: | |
release: | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: "${{ github.event.inputs.branch }}" | |
- name: Fetch history | |
run: git fetch --prune --unshallow | |
- name: Install Helm | |
uses: azure/setup-helm@v3 | |
- name: Configure Git | |
run: | | |
git config user.name "$GITHUB_ACTOR" | |
git config user.email "[email protected]" | |
cat ./charts/longhorn/Chart.yaml | |
- name: Run chart-releaser | |
uses: helm/[email protected] | |
env: | |
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" |