Skip to content

add gallery-thumbs icon #404

add gallery-thumbs icon

add gallery-thumbs icon #404

Workflow file for this run

name: Deploy MyFi CDN
on:
push:
branches:
- main
env:
AZURE_FUNCTIONAPP_PACKAGE_PATH: '.'
CARGO_TERM_COLOR: always
ACCOUNT_NAME: myficdn
PROFILE_NAME: myficdnprofile
PROFILE_ACCOUNT_NAME: myficdn
jobs:
copy-files:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Azure Login
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Copy Files to Azure Blob Storage
uses: azure/CLI@v1
with:
inlineScript: |
az storage copy -s 'cdn/*' --destination-account-name ${{ env.ACCOUNT_NAME }} --destination-container '$web' --recursive
- name: logout
run: |
az logout
if: always()
purge-storage-cache:
runs-on: ubuntu-latest
timeout-minutes: 5
needs: copy-files
steps:
- name: Azure Login
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Purge Storage Cache
uses: azure/CLI@v1
with:
inlineScript: |
az cdn endpoint purge -g ${{ secrets.AZURE_RESOURCE_GROUP }} -n ${{ env.PROFILE_ACCOUNT_NAME }} --profile-name ${{ env.PROFILE_NAME }} --content-paths '/*'
- name: logout
run: |
az logout
if: always()