Skip to content

Changed cicd to target linux function #10

Changed cicd to target linux function

Changed cicd to target linux function #10

Workflow file for this run

name: deploy_frontend
# Deploys when push is made from frontend folder
on:
push:
branches: [ main ]
paths:
- 'frontend/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: login with azure
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Upload to blob storage
uses: azure/CLI@v1
with:
azcliversion: 2.30.0
inlineScript: |
az storage blob upload-batch --account-name cloudresumesite -d '$web' -s frontend/
- name: Purge CDN endpoint
uses: azure/CLI@v1
with:
azcliversion: 2.30.0
inlineScript: |
az cdn endpoint purge --content-paths "/*" --profile-name "CloudResumeChallengeGPS" --name "cloudresumechallengegps" --resource-group "cloud-resume-challenge-rg"
# Azure logout
- name: logout
run: |
az logout