Skip to content

Commit

Permalink
ci: Update upload destination (#736)
Browse files Browse the repository at this point in the history
  • Loading branch information
witwash authored Jan 29, 2025
1 parent f2da817 commit ff28136
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/deploy-widgetbook-azure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:

- name: Build Web
run: |
melos exec --scope="optimus_widgetbook" -- "flutter build web --base-href '/release/'"
melos exec --scope="optimus_widgetbook" -- "flutter build web --base-href '/app/'"
- name: Modify manifest.json
run: |
Expand All @@ -45,8 +45,14 @@ jobs:
inlineScript: |
az storage blob upload --overwrite true --container-name mews-ui-widgetbook --file optimus_widgetbook/build/web/manifest.json --account-name ${{ secrets.AZURE_ACCOUNT_NAME }} --auth-mode login
- name: Upload to blob storage release folder
- name: Upload index.html to the release folder
uses: azure/CLI@v2
with:
inlineScript: |
az storage blob upload-batch --overwrite true --destination mews-ui-widgetbook/release --source optimus_widgetbook/build/web --account-name ${{ secrets.AZURE_ACCOUNT_NAME }} --auth-mode login
az storage blob upload --overwrite true --container-name mews-ui-widgetbook --file optimus_widgetbook/build/web/index.html --account-name ${{ secrets.AZURE_ACCOUNT_NAME }} --auth-mode login
- name: Upload assets to the app folder
uses: azure/CLI@v2
with:
inlineScript: |
az storage blob upload-batch --overwrite true --destination mews-ui-widgetbook/release/app --source optimus_widgetbook/build/web --account-name ${{ secrets.AZURE_ACCOUNT_NAME }} --auth-mode login --pattern "!(manifest.json|index.html)"

0 comments on commit ff28136

Please sign in to comment.