Skip to content

Commit

Permalink
fix workflow, only one file
Browse files Browse the repository at this point in the history
  • Loading branch information
yjmm10 committed Aug 14, 2024
1 parent 60e2bf2 commit b65a4d8
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 107 deletions.
30 changes: 0 additions & 30 deletions .github/workflows/deploy-docs.yml

This file was deleted.

26 changes: 25 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,30 @@ jobs:
name: dist
path: dist

deploy:
needs: build
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/checkout@v2
- name: 设置Python
uses: actions/setup-python@v2
with:
python-version: '3.10' # 根据您的Python版本调整
- name: 安装依赖
run: |
pip install poetry
poetry install
pip install mkdocs-material mkdocs
- name: 构建文档
run: mkdocs build
- name: 部署到GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
publish_dir: ./site # MkDocs默认输出目录


publish:
needs: build
runs-on: ubuntu-latest
Expand All @@ -133,7 +157,7 @@ jobs:
password: ${{ secrets.PYPI_API_TOKEN }}

create-release:
needs: publish
needs: build
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
steps:
Expand Down
37 changes: 0 additions & 37 deletions .github/workflows/python-app.yml

This file was deleted.

39 changes: 0 additions & 39 deletions .github/workflows/python-publish.yml

This file was deleted.

0 comments on commit b65a4d8

Please sign in to comment.