diff --git a/.github/workflows/providers.yaml b/.github/workflows/providers.yaml index 67fcc2c45f..384476b8e2 100644 --- a/.github/workflows/providers.yaml +++ b/.github/workflows/providers.yaml @@ -118,13 +118,13 @@ jobs: if: ${{ github.event.inputs.skip_publish == 'false' }} run: | for pkg in $(ls dist | cut -f1,2 -d_ | uniq); do - echo "Publishing $pkg" PROVIDER=$(echo $pkg | cut -f1 -d_) - VERSION=$REPO_VERSION + VERSION=$(echo $pkg | cut -f2 -d_) + echo "Publishing $pkg: $PROVIDER $VERSION" - echo "Publishing $pkg to gs://${BUCKET}/providers/${PROVIDER}/${VERSION}/" - gsutil -m cp -c dist/${pkg}*.xz gs://${BUCKET}/providers/${PROVIDER}/${VERSION}/ - gsutil -m cp -c dist/${pkg}_SHA256SUMS gs://${BUCKET}/providers/${PROVIDER}/${VERSION}/ + echo "Publishing $pkg to gs://${BUCKET}/providers/${PROVIDER}/${PROVIDER}_${VERSION}/" + gsutil -m cp -c dist/${pkg}*.xz gs://${BUCKET}/providers/${PROVIDER}/${PROVIDER}_${VERSION}/ + gsutil -m cp -c dist/${pkg}_SHA256SUMS gs://${BUCKET}/providers/${PROVIDER}/${PROVIDER}_${VERSION}/ done - name: 'Save Artifacts'