chore: rename urls to maz-ui.com #428
Workflow file for this run
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: Doc Build and Deploy | |
on: | |
push: | |
# branches: | |
# - master | |
paths: | |
- 'packages/docs/**' | |
- 'packages/lib/**' | |
- '.github/workflows/doc-deploy.yml' | |
jobs: | |
doc-build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: latest | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '21' | |
cache: 'pnpm' | |
- name: Get last repo version | |
run: git pull --rebase origin master | |
- name: Install dependencies | |
run: pnpm install | |
- name: Generate components docs | |
run: pnpm --filter cli cli generate-components-docs | |
- name: Build docs | |
run: pnpm --filter docs build | |
# - name: Deploy | |
# uses: peaceiris/actions-gh-pages@v3 | |
# with: | |
# personal_token: ${{ secrets.GH_ACCESS_TOKEN }} | |
# external_repository: LouisMazel/maz-ui-3 | |
# publish_dir: packages/docs/docs/.vitepress/dist | |
# publish_branch: gh-pages # default: gh-pages | |
- name: Deploy to maz-ui.com | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
personal_token: ${{ secrets.GH_ACCESS_TOKEN }} | |
external_repository: LouisMazel/maz-ui | |
publish_dir: packages/docs/docs/.vitepress/dist | |
publish_branch: docs |