Upload to Azure Storage #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Upload to Azure Storage | |
on: | |
workflow_dispatch: | |
jobs: | |
upload: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Azure CLI | |
uses: azure/login@v1 | |
with: | |
creds: ${{ secrets.AZURE_CREDENTIALS }} | |
- name: Create storage container if it does not exist | |
run: | | |
az storage container create --name ghaf-releases-container --account-name your_actual_storage_account_name --auth-mode login | |
- name: Upload files to Azure Storage | |
run: | | |
az storage blob upload-batch -d 'ghaf-releases-container' -s . --account-name ghafreleasesstorage --overwrite --auth-mode login |