Skip to content

Commit 5a8eeb7

Browse files
committed
deploy and update search index
1 parent f25a420 commit 5a8eeb7

File tree

2 files changed

+37
-32
lines changed

2 files changed

+37
-32
lines changed

.github/workflows/check_markdown.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: Check Docs
22

3-
on: [push, pull_request]
3+
on:
4+
pull_request:
5+
branches:
6+
- 'main'
7+
paths:
8+
- 'docs/**'
49

510
jobs:
611
markdown_check:

.github/workflows/deploy_docs.yaml

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -46,40 +46,40 @@ jobs:
4646
python3 .github/scripts/generate_version.py $(git tag | egrep "v(.*)$" | xargs echo -n) > test_versions.json
4747
cat test_versions.json
4848
49-
- name: build docs
50-
run: |
51-
pnpm install
52-
pnpm run build
49+
# - name: build docs
50+
# run: |
51+
# pnpm install
52+
# pnpm run build
5353

54-
- name: Azure Login
55-
uses: azure/login@v2
56-
with:
57-
creds: ${{ secrets.AZURE_CREDENTIALS }}
54+
# - name: Azure Login
55+
# uses: azure/login@v2
56+
# with:
57+
# creds: ${{ secrets.AZURE_CREDENTIALS }}
5858

59-
- name: upload docs to Azure Blob Storage
60-
uses: azure/cli@v2
61-
with:
62-
azcliversion: 2.73.0
63-
inlineScript: |
64-
az storage blob upload-batch \
65-
--account-name ${{ secrets.AZURE_STORAGE_ACCOUNT }} \
66-
--destination '$web' \
67-
--source build \
68-
--overwrite \
69-
--auth-mode key
70-
echo "Uploaded EN docs to Azure Blob Storage"
59+
# - name: upload docs to Azure Blob Storage
60+
# uses: azure/cli@v2
61+
# with:
62+
# azcliversion: 2.73.0
63+
# inlineScript: |
64+
# az storage blob upload-batch \
65+
# --account-name ${{ secrets.AZURE_STORAGE_ACCOUNT }} \
66+
# --destination '$web' \
67+
# --source build \
68+
# --overwrite \
69+
# --auth-mode key
70+
# echo "Uploaded EN docs to Azure Blob Storage"
7171

72-
- name: purge Azure CDN endpoint
73-
uses: azure/cli@v2
74-
with:
75-
azcliversion: 2.73.0
76-
inlineScript: |
77-
az cdn endpoint purge \
78-
--resource-group ${{ secrets.AZURE_RESOURCE_GROUP }} \
79-
--profile-name ${{ secrets.AZURE_CDN_PROFILE }} \
80-
--name ${{ secrets.AZURE_CDN_ENDPOINT }} \
81-
--content-paths "/*" "/index.html" "/"
82-
echo "Azure CDN purged for docs.tdasset.ai"
72+
# - name: purge Azure CDN endpoint
73+
# uses: azure/cli@v2
74+
# with:
75+
# azcliversion: 2.73.0
76+
# inlineScript: |
77+
# az cdn endpoint purge \
78+
# --resource-group ${{ secrets.AZURE_RESOURCE_GROUP }} \
79+
# --profile-name ${{ secrets.AZURE_CDN_PROFILE }} \
80+
# --name ${{ secrets.AZURE_CDN_ENDPOINT }} \
81+
# --content-paths "/*" "/index.html" "/"
82+
# echo "Azure CDN purged for docs.tdasset.ai"
8383

8484
- name: update search index
8585
uses: Swilder-M/docsearch-scraper-simple@next

0 commit comments

Comments
 (0)