Skip to content

Commit

Permalink
修改 yaml 配置文件
Browse files Browse the repository at this point in the history
  • Loading branch information
qiang.bai committed Feb 7, 2024
1 parent 5b4a0d1 commit 627cd5f
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- main

jobs:
build-and-deploy:
build:
runs-on: ubuntu-latest

steps:
Expand All @@ -18,24 +18,25 @@ jobs:
with:
node-version: '14.21.3'

- name: Build Root Project
- name: Build Project example-vite2
run: |
cd example-vite2
npm install
npm run build
- name: Build Project example-vite2
- name: Build Root Project
run: |
cd example-vite2
npm install
npm run build
- name: move gh-pages files
run: |
ls -a
npm run gh-pages
deploy:
needs: build
runs-on: ubuntu-latest

steps:
- name: deploy gh-pages files
uses: JamesIves/github-pages-deploy-action@v4.3.3
uses: JamesIves/github-pages-deploy-action@v4.5.0
with:
folder: docs
branch: gh-pages

0 comments on commit 627cd5f

Please sign in to comment.