Update and rename 20240906.md to 20240911.md (#1602) #1812
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: Docs | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
defaults: | |
run: | |
working-directory: ./docs | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
if: ${{ contains(github.event.head_commit.message, '[docs]') }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use lts Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: latest | |
- name: Install & Lint | |
run: | | |
npm install -g pnpm | |
pnpm install --no-frozen-lockfile | |
pnpm lint | |
- name: Build docs | |
run: pnpm run build | |
- name: Deploy to github pages | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docs/dist | |
publish_branch: gh-pages | |
- name: upload index to Algolia | |
run: pnpm run algolia |