inputting correct release version
This commit is contained in:
parent
b04923d6d3
commit
e2e91a7bd5
|
@ -24,7 +24,7 @@ jobs:
|
||||||
- name: Get the latest budibase release version
|
- name: Get the latest budibase release version
|
||||||
id: version
|
id: version
|
||||||
run: |
|
run: |
|
||||||
if [ ${{ github.event.inputs.version }} == '' ]; then
|
if [ -z "${{ github.event.inputs.version }}" ]; then
|
||||||
release_version=$(cat lerna.json | jq -r '.version')
|
release_version=$(cat lerna.json | jq -r '.version')
|
||||||
else
|
else
|
||||||
release_version=${{ github.event.inputs.version }}
|
release_version=${{ github.event.inputs.version }}
|
||||||
|
|
|
@ -39,13 +39,16 @@ jobs:
|
||||||
- name: Setup Helm
|
- name: Setup Helm
|
||||||
uses: azure/setup-helm@v1
|
uses: azure/setup-helm@v1
|
||||||
id: helm-install
|
id: helm-install
|
||||||
|
run: helm package charts/budibase
|
||||||
|
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
ref: gh-pages
|
||||||
|
|
||||||
- name: Build and release helm chart
|
- name: Build and release helm chart
|
||||||
run: |
|
run: |
|
||||||
git config user.name "Budibase Helm Bot"
|
git config user.name "Budibase Helm Bot"
|
||||||
git config user.email "<>"
|
git config user.email "<>"
|
||||||
helm package charts/budibase
|
|
||||||
git checkout gh-pages
|
|
||||||
mv budibase-${{ github.steps.version.outputs.release_version }}.tgz docs
|
mv budibase-${{ github.steps.version.outputs.release_version }}.tgz docs
|
||||||
helm repo index docs
|
helm repo index docs
|
||||||
git add -A
|
git add -A
|
||||||
|
|
Loading…
Reference in New Issue