* Testing fix to release Action

* try upload blob

* try az upload-batch

* fix syntax

* revert build, update release as needed

* Update release.yml

---------

Co-authored-by: Ohad Bitton <ohbitton@microsoft.com>
Co-authored-by: ohad bitton <32278684+ohadbitt@users.noreply.github.com>
This commit is contained in:
Yihezkel Schoenbrun 2024-08-27 10:59:54 +03:00 коммит произвёл GitHub
Родитель 4867fb1c45
Коммит 8c99dc4a4f
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
1 изменённых файлов: 13 добавлений и 7 удалений

20
.github/workflows/release.yml поставляемый
Просмотреть файл

@ -93,14 +93,20 @@ jobs:
staging/kusto-ingest-${{ steps.get_version.outputs.VERSION }}.pom
continue-on-error: true
if: ${{ github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && github.event.inputs.github_release == 'true') }}
- uses: LanceMcCarthy/Action-AzureBlobUpload@v3
name: Uploading to Azure storage
- name: Azure login for azuresdkpartnerdrops SA
uses: azure/login@v2
with:
connection_string: ${{ secrets.AZURE_STORAGE_CONNECTION_STRING}}
container_name: ${{ secrets.AZURE_STORAGE_CONTAINER}}
source_folder: staging
destination_folder: kusto/java/${{ steps.get_version.outputs.VERSION }}
delete_if_exists: true
client-id: ${{ secrets.AZURESDKPARTNERDROPS_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id:
${{ secrets.AZURESDKPARTNERDROPS_SUBSCRIPTION_ID }}
- name: Upload file to Blob Storage
run: |
az storage blob upload-batch \
--account-name ${{ secrets.AZURE_RELEASE_STORAGE_ACCOUNT }} \
--destination ${{ secrets.AZURE_STORAGE_CONTAINER }}/kusto/java/${{ steps.get_version.outputs.VERSION }} \
--source staging \
--auth-mode login
if: ${{ github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && github.event.inputs.upload_to_azure == 'true') }}
- name: Trigger pipelines release
uses: jacopocarlini/azure-pipelines@v1.3