Skip to content

Commit

Permalink
Fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
asivery committed Aug 12, 2024
1 parent 2786413 commit 2f23d6f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy-to-azure-storage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,10 @@ jobs:
- name: checkout
uses: actions/[email protected]

# needs to be node 14 due to node-gyp issue
- name: change node version
uses: actions/setup-node@v2
with:
node-version: '14'
node-version: '22'

# 'do not treat warnings as errors' per 'deploy-to-gh-pages.yml'
- name: install and build
Expand All @@ -37,6 +36,7 @@ jobs:
npm run build
env:
CI: false
PUBLIC_URL: https://web.minidisc.wiki/

# clears the storage account before uploading new version
- name: Purge blob storage
Expand All @@ -45,12 +45,12 @@ jobs:
inlineScript: |
az storage blob delete-batch --account-name wmdpro --auth-mode key --account-key ${{ secrets.AZURE_STORAGEKEY_WMDFILES }} -s '$web'
# uploads the contents of the 'build/' folder to the '$web/ folder on the 'wmdpro' storage account using the key held in GH secrets
# uploads the contents of the 'dist/' folder to the '$web/ folder on the 'wmdpro' storage account using the key held in GH secrets
- name: Upload to blob storage
uses: azure/CLI@v1
with:
inlineScript: |
az storage blob upload-batch --overwrite --account-name wmdpro --auth-mode key --account-key ${{ secrets.AZURE_STORAGEKEY_WMDFILES }} -d '$web' -s 'build/'
az storage blob upload-batch --overwrite --account-name wmdpro --auth-mode key --account-key ${{ secrets.AZURE_STORAGEKEY_WMDFILES }} -d '$web' -s 'dist/'
# clears everything on CDN profile 'wmd' endpoint 'web' which is inside resource group 'WMDpro'
- name: Purge CDN endpoint
Expand Down

0 comments on commit 2f23d6f

Please sign in to comment.