Update index.html for testing2 #4
This file contains hidden or 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: Deploy_frontend | |
# Deploys when push is made form frontend folder | |
on: | |
push: | |
branches: [ master ] | |
paths: | |
- 'frontend/**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: azure/login@v1 | |
with: | |
creds: ${{ secrets.AZURE_CREDENTIALS }} | |
- name: Upload to blob storage | |
uses: azure/CLI@v1 | |
with: | |
inlineScript: | | |
az storage blob upload-batch --account-name cloudresumestorageacc --auth-mode key -d '$web' -s frontend/ --overwrite true | |
# az storage blob upload-batch --account-name cloudresumestorageacc --auth-mode key -d '$web' -s frontend/ --overwrite true | |
# - name: Purge CDN endpoint | |
# uses: azure/CLI@v1 | |
# with: | |
# inlineScript: | | |
# az cdn endpoint purge --content-paths "/*" --profile-name "CDN_PROFILE_NAME" --name "CDN_ENDPOINT" --resource-group "RESOURCE_GROUP" | |
# Azure logout | |
- name: logout | |
run: | | |
az logout | |
if: always() |