|
|
|
@ -17,7 +17,7 @@ jobs: |
|
|
|
# Get latest release version |
|
|
|
sudo apt-get install -y jq |
|
|
|
release_version=$(cat lerna.json | jq -r '.version') |
|
|
|
echo "::set-output name=release_version::$release_version" |
|
|
|
echo "RELEASE_VERSION=$release_version" >> $GITHUB_ENV |
|
|
|
release_tag=v$release_version |
|
|
|
|
|
|
|
# Pull apps and worker images |
|
|
|
@ -40,27 +40,26 @@ jobs: |
|
|
|
uses: azure/setup-helm@v1 |
|
|
|
id: helm-install |
|
|
|
|
|
|
|
- run: helm package charts/budibase |
|
|
|
# - run: helm package charts/budibase |
|
|
|
|
|
|
|
- uses: actions/checkout@v2 |
|
|
|
with: |
|
|
|
ref: gh-pages |
|
|
|
|
|
|
|
# - 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 "<>" |
|
|
|
mv budibase-${{ github.steps.version.outputs.release_version }}.tgz docs |
|
|
|
helm repo index docs |
|
|
|
git add -A |
|
|
|
git commit -m "Helm Release: ${{ github.steps.version.outputs.release_version }}" |
|
|
|
git push |
|
|
|
env: |
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
|
|
|
# - name: Build and release helm chart |
|
|
|
# run: | |
|
|
|
# git config user.name "Budibase Helm Bot" |
|
|
|
# git config user.email "<>" |
|
|
|
# mv budibase-${{ env.RELEASE_VERSION }}.tgz docs |
|
|
|
# helm repo index docs |
|
|
|
# git add -A |
|
|
|
# git commit -m "Helm Release: ${{ env.RELEASE_VERSION }}" |
|
|
|
# git push |
|
|
|
# env: |
|
|
|
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
|
|
|
|
|
|
|
- name: Perform Github Release |
|
|
|
uses: softprops/action-gh-release@v1 |
|
|
|
with: |
|
|
|
name: v${{ github.steps.version.outputs.release_version }} |
|
|
|
name: v${{ env.RELEASE_VERSION }} |
|
|
|
generate_release_notes: true |