Skip to content

updated as hiv1

updated as hiv1 #7

Workflow file for this run

name: deploy_frontend
#deploys when push is made from the front end folder
on:
push:
branches: [ main ]
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:
azcliversion: 2.64.0
inlineScript: |
az storage blob upload-batch --account-name rayazureresumestorageacc -d '$web' -s frontend/
- name: Purge CDN endpoint
uses: azure/CLI@v1
with:
azcliversion: 2.64.0
inlineScript: |
az cdn endpoint purge --content-paths "/*" --profile-name "azureresumeray" --name "azureresumeray" --resource-group "raygetresumecounter2"
# Azure logout
- name: logout
run: |
az logout
if: always()