-
-
Notifications
You must be signed in to change notification settings - Fork 1
executable file
·39 lines (36 loc) · 1.15 KB
/
docs_ci_cd.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Docs CI/CD
on:
workflow_dispatch:
push:
branches:
- main
paths:
- '**/vuepress/**'
jobs:
build_and_deploy_job:
runs-on: ubuntu-latest
name: Build and Deploy Job
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- run: pnpm run ci-all
- name: Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_WHITE_GRASS_07FF9650F }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
action: "upload"
app_location: "/vuepress/.vuepress/dist"
skip_app_build: true
- name: Trigger Algolia docsearch crawler
run: curl -H "Content-Type:application/json" --user 8f4b2817-400d-4d96-aa27-171a1165de82:${{ secrets.ALGOLIA_CRAWLER_KEY }} "https://crawler.algolia.com/api/1/"