Skip to content

Commit

Permalink
Update condition guards at deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
vgeorge committed Mar 18, 2024
1 parent 6ef8113 commit 6b1a451
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,31 +49,20 @@ jobs:
run: yarn postinstall

- name: Build Prod
if: github.ref == 'refs/heads/main'
run: yarn build

- name: Azure Login
if: github.ref == 'refs/heads/main'
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS_PRODUCTION }}

- name: Upload to blob storage
if: github.ref == 'refs/heads/main'
uses: azure/CLI@v1
with:
inlineScript: |
az storage blob upload-batch --account-name $PRODUCTION_STORAGE_ACCOUNT_NAME --overwrite -d '$web' -s ./dist
- name: Purge CDN endpoint
if: github.ref == 'refs/heads/develop'
uses: azure/CLI@v1
with:
inlineScript: |
az cdn endpoint purge --content-paths "/*" --profile-name $STAGING_CDN_PROFILE_NAME --name $STAGING_CDN_ENDPOINT --resource-group $STAGING_RESOURCE_GROUP
- name: Purge CDN endpoint
if: github.ref == 'refs/heads/main'
uses: azure/CLI@v1
with:
inlineScript: |
Expand Down

0 comments on commit 6b1a451

Please sign in to comment.