Bump microservice chart version 5.11.0 #131
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 | |
on: | |
# Trigger the workflow on push or pull request, | |
# but only for the main branch | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- 'CODEOWNERS' | |
- '**.md' | |
- 'example' | |
- 'util' | |
- 'bin' | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.RELEASE_TOKEN }} | |
# issue: https://github.com/helm/chart-releaser-action/issues/113 | |
- name: Force tags download | |
run: | | |
git pull --tags | |
- name: Configure Git | |
run: | | |
git config user.name "$GITHUB_ACTOR" | |
git config user.email "[email protected]" | |
- name: Semantic release | |
uses: cycjimmy/semantic-release-action@v3 | |
id: semantic | |
with: | |
dry_run: true | |
semantic_version: 19.0.5 | |
extra_plugins: | | |
@semantic-release/[email protected] | |
@semantic-release/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Bump new version | |
if: steps.semantic.outputs.new_release_published == 'true' | |
run: | | |
yq -i ".version = \"${{ steps.semantic.outputs.new_release_version }}\"" "charts/microservice-chart/Chart.yaml" | |
git add "charts/microservice-chart/Chart.yaml" | |
git commit -m "Bump microservice chart version ${{ steps.semantic.outputs.new_release_version }}" | |
git push -u origin main | |
- name: Setup Helm | |
if: steps.semantic.outputs.new_release_published == 'true' | |
run: | | |
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | |
chmod 700 get_helm.sh | |
./get_helm.sh | |
- name: Run chart-releaser | |
if: steps.semantic.outputs.new_release_published == 'true' | |
uses: helm/[email protected] | |
env: | |
CR_TOKEN: "${{ secrets.RELEASE_TOKEN }}" |