Upload to Azure Storage #11
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 ghafreleasesstorage --account-key ${{ secrets.AZURE_STORAGE_ACCOUNT_KEY }} | |
- name: Upload files to Azure Storage | |
run: | | |
az storage blob upload-batch -d ghaf-releases-container -s . --account-name ghafreleasesstorage --overwrite --account-key ${{ secrets.AZURE_STORAGE_ACCOUNT_KEY }} |