Skip to content

feat: refresh all documents #1001

feat: refresh all documents

feat: refresh all documents #1001

Workflow file for this run

name: build-and-deploy
on:
push:
branches:
- main
pull_request:
branches:
- main
types:
- closed
jobs:
deploy:
if: (github.event_name == 'push') || github.event.pull_request.merged == true
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Git checkout
uses: actions/checkout@v2
- name: NPM install
env:
NODE_OPTIONS: "--max_old_space_size=4096"
run: npm install
- name: NPM build
env:
NODE_OPTIONS: "--max_old_space_size=4096"
run: npm run build
- name: Deploy kcl-lang/kcl-lang.github.io
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.DEPLOY_ACCESS_TOKEN }}
external_repository: kcl-lang/kcl-lang.github.io
publish_dir: ./build
publish_branch: main