Skip to content

Commit

Permalink
Update publish-docs.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
tuckn authored Jan 8, 2024
1 parent 0618eb9 commit 6f51264
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions .github/workflows/publish-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,36 +8,36 @@ jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Check out
- uses: actions/checkout@v3

- name: Rebuild docs
uses: actions/setup-node@v1
with:
node-version: '12'
- run: npm install
- run: npm run docs
- run: npx insert-gtag tag-manager ./docs ${{ secrets.GTM_CONTAINER_ID }}

- name: Connect Azure
- uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}

- name: Upload docs
uses: azure/CLI@v1
with:
inlineScript: |
az storage blob upload-batch --destination '$web/docs/WshJest' --source ./docs --account-name ${{ secrets.STORAGE_ACCOUNT_NAME }} --auth-mode key
- name: Purge CDN endpoint
uses: azure/CLI@v1
with:
inlineScript: |
az afd endpoint purge --content-paths '/docs/WshJest/*' --profile-name ${{ secrets.AFD_PROFILE_NAME }} --endpoint-name ${{ secrets.AFD_ENDPOINT_NAME }} --resource-group ${{ secrets.RESOURCE_GROUP_NAME }} --subscription ${{ secrets.SUBSCRIPTION_NAME }} --domains assets.tuckn.net
# Azure logout
- name: logout
run: az logout
if: always()
steps:
- name: Check out
- uses: actions/checkout@v3
- name: Rebuild docs
uses: actions/setup-node@v1
with:
node-version: '12'
- run: npm install
- run: npm run docs
- run: npx insert-gtag tag-manager ./docs ${{ secrets.GTM_CONTAINER_ID }}
- name: Connect Azure
- uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Upload docs
uses: azure/CLI@v1
with:
inlineScript: |
az storage blob upload-batch --destination '$web/docs/WshJest' --source ./docs --account-name ${{ secrets.STORAGE_ACCOUNT_NAME }} --auth-mode key
- name: Purge CDN endpoint
uses: azure/CLI@v1
with:
inlineScript: |
az afd endpoint purge --content-paths '/docs/WshJest/*' --profile-name ${{ secrets.AFD_PROFILE_NAME }} --endpoint-name ${{ secrets.AFD_ENDPOINT_NAME }} --resource-group ${{ secrets.RESOURCE_GROUP_NAME }} --subscription ${{ secrets.SUBSCRIPTION_NAME }} --domains assets.tuckn.net
# Azure logout
- name: logout
run: az logout
if: always()

0 comments on commit 6f51264

Please sign in to comment.