diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7e09104..8151548 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,14 +51,23 @@ jobs: "OUTPUTDIRECTORY=.\output\Setup\en-US\" | Add-Content $env:GITHUB_OUTPUT - # - name: Azure login - # if: github.ref == 'refs/heads/main' - # uses: Azure/login@v2 - # with: - # client-id: ${{ secrets.AZURE_CLIENT_ID }} - # tenant-id: ${{ secrets.AZURE_TENANT_ID }} - # subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} - # enable-AzPSSession: true + - name: Azure login + if: github.ref == 'refs/heads/main' + uses: Azure/login@v2 + with: + client-id: ${{ secrets.AZURE_CLIENT_ID }} + tenant-id: ${{ secrets.AZURE_TENANT_ID }} + subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} + enable-AzPSSession: true + + - name: Upload to Azure + env: + AZURE_STORAGE_NAME: ${{ secrets.AZURE_STORAGE_NAME }} + AZURE_BLOB_NAME: ${{ secrets.AZURE_BLOB_NAME }} + shell: powershell + run: | + $installer = Get-ChildItem -Path .\output\Setup\en-US\*.msi + az storage blob upload -f $installer.FullName -c $env:AZURE_STORAGE_NAME -n $env:AZURE_BLOB_NAME # - name: Sign module # if: github.ref == 'refs/heads/main'