Skip to content

Commit

Permalink
Testing fix to release Action (#375)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
3 people authored Aug 27, 2024
1 parent 4867fb1 commit 8c99dc4
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8c99dc4

Please sign in to comment.