Skip to content

Commit

Permalink
Merge branch 'main' into publish
Browse files Browse the repository at this point in the history
  • Loading branch information
originalFactor committed Jul 10, 2024
2 parents 196587e + ba472d9 commit d5de0d7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build-and-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
push:
branches:
- publish
defaults:
run:
working-directory: develop/
jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -16,8 +19,6 @@ jobs:
with:
python-version: 3.11
architecture: x64
- name: Route to project directory
run: cd develop
- name: Install Dependencies
run: pip3 install -r requirements.txt
- name: Build PyPI package
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
permissions:
contents: write

defaults:
run:
working-directory: docs/

jobs:
deploy-gh-pages:
runs-on: ubuntu-latest
Expand All @@ -26,9 +30,7 @@ jobs:
with:
node-version: 20
cache: npm

- name: 进入目录
run: cd docs
cache-dependency-path: docs/package-lock.json

- name: 安装依赖
run: npm ci
Expand All @@ -45,4 +47,4 @@ jobs:
with:
# 这是文档部署到的分支名称
branch: gh-pages
folder: docs/.vuepress/dist
folder: docs/docs/.vuepress/dist

0 comments on commit d5de0d7

Please sign in to comment.