Skip to content

Merge pull request #11 from YoubetDao/feature/dashboard-total-issue #20

Merge pull request #11 from YoubetDao/feature/dashboard-total-issue

Merge pull request #11 from YoubetDao/feature/dashboard-total-issue #20

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- main # 或者是你想要触发部署的分支
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '14' # 或者你项目使用的 Node.js 版本
- name: Install dependencies
run: npm install
- name: Build project
run: npm run build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist # 你的构建输出目录