Skip to content

Feat/with tsx

Feat/with tsx #92

name: GitHub Actions Build Docs
on:
pull_request:
branches:
- main
types:
- closed
jobs:
deploy-docs:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
- name: install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: install dependencies
run: pnpm install
- name: Build
run: pnpm run build
- name: Build docs
run: pnpm run docs:build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BRANCH: gh-pages
FOLDER: docs-dist