ci: fix releae commands #4
Workflow file for this run
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: "CI: Release" | |
on: | |
push: | |
tags: ['*'] | |
defaults: | |
run: | |
working-directory: rclone_helm | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the codebase. | |
uses: actions/checkout@v4 | |
with: | |
ref: gh-pages | |
fetch-depth: 0 | |
path: rclone_helm | |
- name: Install Helm | |
uses: azure/setup-helm@v4 | |
env: | |
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
- name: Configure git. | |
run: | | |
git config user.name "CI Bot" | |
git config user.email [email protected] | |
- name: Merge chart's latest changes. | |
run: | | |
git fetch origin main | |
git merge origin/main | |
- name: Build and publish. | |
run: | | |
helm package ./ -d ./charts | |
helm repo index --url https://abarrak.github.io/rclone-helm ./ | |
LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`) | |
git commit -m "[auto] publish new release - chart ${LATEST_TAG}" | |
git push origin gh-pages |