Skip to content

Commit

Permalink
Adding new action to deploy web and not use luuchacarro
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbertsak committed Mar 2, 2023
1 parent 853f78d commit e913795
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 17 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/medicines-web-branch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,5 @@ jobs:
name: medicines-pa11y-screenshots
path: medicines/web/pa11y-screenshots

- name: Deploy products web to static site in azure storage using azure cli
uses: Azure/cli@v1.0.7
with:
azcliversion: latest
inlineScript: |
az storage blob upload-batch -d "\$web" -s"medicines/web/dist" --overwrite true --connection-string "${{ secrets.AZURE_STORAGE_PRODUCTS_WEB_CONNECTION_STRING }}"


10 changes: 5 additions & 5 deletions .github/workflows/medicines-web-master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ jobs:
name: medicines-pa11y-screenshots
path: medicines/web/pa11y-screenshots

- name: Deploy products web to static site in azure storage
uses: lauchacarro/Azure-Storage-Action@92250565adefe3844ab7e135cb570ca354f0ac18
- name: Deploy products web to static site in azure storage using azure cli
uses: Azure/cli@v1.0.7
with:
enabled-static-website: true
folder: medicines/web/dist
connection-string: ${{ secrets.AZURE_STORAGE_PRODUCTS_WEB_CONNECTION_STRING }}
azcliversion: latest
inlineScript: |
az storage blob upload-batch -d "\$web" -s "medicines/web/dist" --overwrite true --connection-string "${{ secrets.AZURE_STORAGE_PRODUCTS_WEB_CONNECTION_STRING }}"
11 changes: 5 additions & 6 deletions .github/workflows/medicines-web-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,9 @@ jobs:
draft: false
prerelease: false

- name: Deploy products web to static site in azure storage
# master causes this step to fail so pointing to last working commit until fixed
uses: lauchacarro/Azure-Storage-Action@92250565adefe3844ab7e135cb570ca354f0ac18
- name: Deploy products web to static site in azure storage using azure cli
uses: Azure/cli@v1.0.7
with:
enabled-static-website: true
folder: medicines/web/dist
connection-string: ${{ secrets.AZURE_STORAGE_PROD_PRODUCTS_WEB_CONNECTION_STRING }}
azcliversion: latest
inlineScript: |
az storage blob upload-batch -d "\$web" -s "medicines/web/dist" --overwrite true --connection-string "${{ secrets.AZURE_STORAGE_PRODUCTS_WEB_CONNECTION_STRING }}"

0 comments on commit e913795

Please sign in to comment.