Skip to content

Merge pull request #173 from He1pa/update_lsp #749

Merge pull request #173 from He1pa/update_lsp

Merge pull request #173 from He1pa/update_lsp #749

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
- run: npm install
# Fix FATAL ERROR - JavaScript heap out of memory
- run: npm install -g increase-memory-limit && increase-memory-limit
- 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