diff --git a/.github/workflows/build-and-upload.yaml b/.github/workflows/build-and-upload.yaml index 52a6a036..c66afae2 100644 --- a/.github/workflows/build-and-upload.yaml +++ b/.github/workflows/build-and-upload.yaml @@ -104,7 +104,7 @@ jobs: uses: 'google-github-actions/upload-cloud-storage@v2' with: path: ${{steps.build-embedded.outputs.BUILD_EMBEDED_TGZ}} - destination: releases.rancher.com/harvester-ui/${{ env.REPO }} + destination: releases.rancher.com/harvester-ui/dashboard parent: false headers: |- cache-control: no-cache,must-revalidate diff --git a/scripts/build-embedded b/scripts/build-embedded index 4cd9e8da..22e926b2 100755 --- a/scripts/build-embedded +++ b/scripts/build-embedded @@ -18,6 +18,10 @@ echo "BRANCH: ${COMMIT_BRANCH:-}" echo "TAG: ${GIT_TAG:-}" DIR=${GIT_TAG:-$COMMIT_BRANCH} +if [[ "${DIR}" == "main" ]]; then + DIR="latest" +fi + OUTPUT_DIR=dist/${DIR}-embedded echo "Building..."