Skip to content

Merge pull request #26 from qinkangdeid/feature/doc-update #14

Merge pull request #26 from qinkangdeid/feature/doc-update

Merge pull request #26 from qinkangdeid/feature/doc-update #14

Workflow file for this run

name: Deploy
on:
workflow_dispatch: {}
push:
branches:
- main
pull_request:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- run: npm install -g yarn
- run: yarn install
- run: yarn build
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build