增加uniapp和element等工作中遇到的问题 #57
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
name: Deploy | |
on: | |
push: | |
# push 代码的时候 哪个分支会受到影响 这里 master 分支 | |
branches: | |
- master | |
# 推送之后执行一系列的任务 | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Get the content of algolia.json as config | |
id: algolia_config | |
run: echo "config=$(cat crawlerConfig.json | jq -r tostring)" >> $GITHUB_OUTPUT | |
- name: Push indices to Algolia | |
uses: signcl/docsearch-scraper-action@master | |
env: | |
APPLICATION_ID: ${{ secrets.APPLICATION_ID }} | |
API_KEY: ${{ secrets.API_KEY }} | |
CONFIG: ${{ steps.algolia_config.outputs.config }} | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: yarn | |
- run: yarn install --frozen-lockfile | |
# 打包 | |
- name: Build | |
run: yarn docs:build | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: docs/.vitepress/dist |