Merge pull request #8 from drasi-project/fix-trivia #16
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 tutorial zip | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- "main" | |
permissions: | |
id-token: write # Required for requesting the JWT | |
contents: read # Required for actions/checkout | |
jobs: | |
archive_and_upload: | |
runs-on: ubuntu-latest | |
environment: learning | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Zip folder | |
run: | | |
zip -r quickstart-dev-container.zip ./tutorial | |
- name: Login to Azure | |
uses: azure/login@v2 | |
with: | |
client-id: ${{ secrets.AZURE_CLIENT_ID }} | |
tenant-id: ${{ secrets.AZURE_TENANT_ID }} | |
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | |
- name: Upload to Azure Storage Blob | |
run: | | |
az storage blob upload --file quickstart-dev-container.zip --container-name tutorials --overwrite --name quickstart-dev-container.zip --account-name drasi | |