Skip to content

Merge pull request #1 from bjmaynard01/dev #9

Merge pull request #1 from bjmaynard01/dev

Merge pull request #1 from bjmaynard01/dev #9

Workflow file for this run

name: Blob storage website CI
on:
push:
branches: [ main ]
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: |
cd ./resume-site
az storage blob upload-batch --account-name "maynardcloudresume" --auth-mode key -d '$web' -s . --overwrite true
- name: Purge CDN endpoint
uses: azure/CLI@v1
with:
inlineScript: |
az cdn endpoint purge --content-paths "/*" --profile-name "maynardfolks-cloud-resume-cdn-profile" --name "maynardfolks-cloud-resume-cdn-endpoint" --resource-group "Maynardfolks-Cloud-Resume-Challenge"
#Azure Logout
- name: logout
run: |
az logout
if: always()