release: 0.47.0 (#301) #27
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: Publish Helm | |
# This workflow builds the 'main' helm | |
# That is, any helm chart change that gets to main is immediately uploaded to the | |
# chart repo (that is to say it is released without further ado) | |
env: {} | |
on: | |
push: | |
branches: [main] | |
paths: ['charts/substra-frontend/**'] | |
workflow_dispatch: {} # For running by hand from the web UI | |
jobs: | |
build-helm: | |
name: Package Helm chart | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: azure/setup-helm@v3.5 | |
with: | |
version: 'v3.5.0' | |
id: install | |
- run: helm lint charts/substra-frontend | |
- name: Package chart | |
run: | | |
helm package charts/substra-frontend | |
- name: Clone Substra charts | |
uses: actions/checkout@v4 | |
with: | |
repository: Substra/charts | |
ref: 'main' | |
token: ${{ secrets.CHARTS_GITHUB_TOKEN }} | |
path: substra-charts | |
- name: Publish chart | |
run: | | |
mv substra-frontend-$(grep -e "^version" charts/substra-frontend/Chart.yaml | cut -c10-).tgz substra-charts/ | |
cd substra-charts | |
helm repo index . | |
git add . | |
git config --global user.email "gh-actions@github.com" | |
git config --global user.name "GitHub Action" | |
git commit -s --message "GitHub Action: ${{ github.repository }}@${{ github.sha }}" | |
git push --quiet --set-upstream origin main |