feat: container mock element #281
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: gen_website | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
gen_website: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: main | |
- name: merge main -> docs | |
uses: devmasx/merge-branch@master | |
with: | |
github_token: ${{ github.token }} | |
type: now | |
from_branch: main | |
target_branch: docs | |
- uses: actions/checkout@v2 | |
with: | |
ref: docs | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' | |
- uses: pnpm/action-setup@v2 | |
name: Install pnpm | |
id: pnpm-install | |
with: | |
version: 7 | |
run_install: false | |
- run: pnpm install | |
- run: pnpm run build:doc | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
branch: docs | |
commit_message: '[Automated] gen website' |