LPD-52533 Add missing click on select file button since it was moved … #2
This file contains hidden or 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
| defaults: | |
| run: | |
| shell: bash | |
| env: | |
| CHART_VERSION: "0.0.0" | |
| GAR_REPOSITORY: "us-central1-docker.pkg.dev/liferay-artifact-registry/liferay-helm-chart" | |
| jobs: | |
| publish-cloud-helm-chart: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Calculate Helm chart version | |
| run: | | |
| # | |
| # heml-chart-1.0.5 | |
| # | |
| LATEST_HELM_CHART_TAG=$(git describe --tags --match="helm-chart-*" HEAD) | |
| # | |
| # 1.0.5 | |
| # | |
| CHART_VERSION=${LATEST_HELM_CHART_TAG#"helm-chart-"} | |
| echo "Calculated Helm chart version ${CHART_VERSION}." | |
| echo "CHART_VERSION=${CHART_VERSION}" >> ${GITHUB_ENV} | |
| - name: Package Helm chart | |
| run: | | |
| mkdir "${{ runner.temp }}/dist" | |
| helm package --destination "${{ runner.temp }}/dist" --version ${CHART_VERSION} . | |
| working-directory: ./cloud/helm | |
| - name: Log in to GAR | |
| run: echo "${{ secrets.GAR_PASSWORD }}" | helm registry login ${GAR_REPOSITORY} --password-stdin --username _json_key_base64 | |
| - name: Push Helm chart to GAR | |
| run: | | |
| for file_name in *.tgz | |
| do | |
| echo "Pushing ${file_name}." | |
| helm push "${file_name}" "oci://${GAR_REPOSITORY}" | |
| done | |
| working-directory: ${{ runner.temp }}/dist | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - cloud/** |