diff --git a/.github/workflows/workflow-call-release-package.yml b/.github/workflows/workflow-call-release-package.yml index e95e3c05f..f831869b2 100644 --- a/.github/workflows/workflow-call-release-package.yml +++ b/.github/workflows/workflow-call-release-package.yml @@ -21,10 +21,37 @@ on: required: true env: NODE_VERSION: '18.x' # set this to the node version to use - AZCOPY_AUTO_LOGIN_TYPE: WORKLOAD jobs: + pre: + runs-on: ubuntu-latest + environment: Cloud + outputs: + goon: false + steps: + - name: 'Az CLI login' + uses: azure/login@v2 + with: + client-id: ${{ secrets.AZURESDKPARTNERDROPS_CLIENT_ID }} + tenant-id: ${{ secrets.AZURESDKPARTNERDROPS_TENANT_ID }} + subscription-id: ${{ secrets.AZURESDKPARTNERDROPS_SUBSCRIPTION_ID }} + - name: AzCopy to shared blob + env: + ClientID: ${{ secrets.AZURESDKPARTNERDROPS_CLIENT_ID }} + TenantId: ${{ secrets.AZURESDKPARTNERDROPS_TENANT_ID }} + AZCOPY_TENANT_ID: ${{ secrets.AZURESDKPARTNERDROPS_TENANT_ID }} + AZCOPY_CLIENT_ID: ${{ secrets.AZURESDKPARTNERDROPS_CLIENT_ID }} + AZCOPY_SPA_APPLICATION_ID: ${{ secrets.AZURESDKPARTNERDROPS_CLIENT_ID }} + AZCOPY_SPA_CLIENT_ID: ${{ secrets.AZURESDKPARTNERDROPS_CLIENT_ID }} + AZCOPY_MSI_CLIENT_ID: ${{ secrets.AZURESDKPARTNERDROPS_CLIENT_ID }} + AZCOPY_AUTO_LOGIN_TYPE: workload + run: | + echo "$AZCOPY_AUTO_LOGIN_TYPE" + azcopy copy ${{ steps.pack_package.outputs.packagePath }} "${{ secrets.AZURESDKPARTNERDROPS_URL }}/azure-webpubsub/${{ inputs.package_name }}/${{ needs.check_version.outputs.release_version }}/" + check_version: + needs: pre + if: ${{ needs.pre.outputs.goon == 'true' }} runs-on: ubuntu-latest outputs: needs_release: ${{ steps.compare_versions.outputs.needs_release }} @@ -72,9 +99,7 @@ jobs: id: compare_versions if: steps.needs_release.outputs.needs_release == 'true' && steps.tag_version.outputs.tag_version != steps.read_current_version.outputs.current_version run: | - echo "needs_release=true" >> $GITHUB_OUTPUT - - build-deploy: + echo "needs_release=true" >> $GITHUB_OUTPUTbuild-deploy: runs-on: ubuntu-latest needs: check_version environment: Cloud