Merge pull request #19 from yunkuangao/main

feat: 允许自动根据main分支更新构建发布流程
This commit is contained in:
XiaoDaiGua-Ray 2023-12-13 16:06:37 +08:00 committed by GitHub
commit e7733fa105
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

35
.github/workflows/docs-deploy.yaml vendored Normal file
View File

@ -0,0 +1,35 @@
name: ray-template documents deploy
on: [push, pull_request]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
run_install: false
- name: Install dependencies
run: pnpm install
- name: Pnpm build
run: pnpm build
- name: Deploy to dist branch
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
branch: dist
folder: dist/production-dist