Skip to content

test: Pass the test case #87

test: Pass the test case

test: Pass the test case #87

Workflow file for this run

name: Deploy Github Pages
on:
push:
branches:
- master
paths:
- 'docs/**'
- README.md
- CONTRIBUTE.md
- 'packages/*/README.md'
workflow_dispatch:
jobs:
page-deploy:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16]
steps:
- uses: actions/checkout@v3
- uses: pnpm/[email protected]
with:
version: 8.2.0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install
run: |
pnpm install
env:
CI: true
- name: Build Docs
run: |
pnpm build:docs
- name: Deploy to Github Pages
uses: crazy-max/ghaction-github-pages@v1
with:
target_branch: gh-pages
build_dir: docs/
env:
GITHUB_PAT: ${{ secrets.GITHUB_PAT }}
- name: Notify the xmcl-page
uses: benc-uk/workflow-dispatch@v1
with:
token: ${{ secrets.GITHUB_PAT }}
repo: Voxelum/xmcl-page
workflow: deploy-docs.yaml