Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Update upload destination #736

Merged
merged 2 commits into from
Jan 29, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)"