1
0
Fork 0
mirror of synced 2024-06-29 11:31:06 +12:00

inputting correct release version

This commit is contained in:
Martin McKeaveney 2021-12-16 14:31:40 +01:00
parent 21ffc61856
commit 75eff0bbd8
2 changed files with 6 additions and 3 deletions

View file

@ -24,7 +24,7 @@ jobs:
- name: Get the latest budibase release version
id: version
run: |
if [ ${{ github.event.inputs.version }} == '' ]; then
if [ -z "${{ github.event.inputs.version }}" ]; then
release_version=$(cat lerna.json | jq -r '.version')
else
release_version=${{ github.event.inputs.version }}

View file

@ -39,13 +39,16 @@ jobs:
- name: Setup Helm
uses: azure/setup-helm@v1
id: helm-install
run: helm package charts/budibase
- uses: actions/checkout@v2
with:
ref: gh-pages
- name: Build and release helm chart
run: |
git config user.name "Budibase Helm Bot"
git config user.email "<>"
helm package charts/budibase
git checkout gh-pages
mv budibase-${{ github.steps.version.outputs.release_version }}.tgz docs
helm repo index docs
git add -A