forked from cybercase/webminidisc
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|