Skip to content

调整样式,优化添加逻辑 #9

调整样式,优化添加逻辑

调整样式,优化添加逻辑 #9

name: Deploy gh-pages
on:
push:
branches:
- master
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install & Build
uses: actions/setup-node@v3
with:
node-version: "18.x"
- run: node -v
- run: npm install
- run: npm run build
- name: Deploy # 部署
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages # 部署后提交到那个分支
folder: dist # 这里填打包好的目录名称