From a827a376b9f05289cd83ed634fd4f1f141eaadd8 Mon Sep 17 00:00:00 2001 From: Yair <39923744+yaira2@users.noreply.github.com> Date: Thu, 2 Nov 2023 14:31:58 -0400 Subject: [PATCH] GitHub: Upload to blog storage (#13644) --- .github/workflows/deploy-preview.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/deploy-preview.yml b/.github/workflows/deploy-preview.yml index 18a8c54ca364f..16ff20da9c7d4 100644 --- a/.github/workflows/deploy-preview.yml +++ b/.github/workflows/deploy-preview.yml @@ -148,6 +148,22 @@ jobs: timestamp-rfc3161: http://timestamp.acs.microsoft.com timestamp-digest: SHA256 + - uses: azure/login@v1 + with: + creds: ${{ secrets.AZURE_CREDENTIALS }} + + - name: Upload to blob storage + uses: azure/powershell@v1 + with: + inlineScript: | + az storage blob upload-batch --account-name "filescommunity" --destination "files" --destination-path "test" --source ${{ env.APPX_PACKAGE_DIR }} --overwrite true + azPSVersion: "latest" + + # Azure logout + - name: logout + run: | + az logout + - name: Upload the packages to GitHub Actions uses: actions/upload-artifact@v3 with: