mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-08-28 05:25:04 +00:00
chore(workflow): update package installation to include core extra de… (#331)
* chore(workflow): update package installation to include core extra dependencies - Modified pre-commit workflow to install with [dev,core] extras - Updated python-publish workflow to install wheel with core extra dependency - Changed from direct dist/*.whl install to variable assignment for wheel path - Ensured core dependencies are included during test installation phase * chore(workflow): remove docs deployment workflow - Delete the entire docs.yml workflow file that was used for deploying documentation - Remove all related configuration including build and deploy jobs - Stop automatic deployment of docs on pushes to main branch - Remove GitHub Actions workflow for docs/ directory changes
This commit is contained in:
parent
eb471d7d94
commit
b53d3db8d0
3 changed files with 3 additions and 72 deletions
70
.github/workflows/docs.yml
vendored
70
.github/workflows/docs.yml
vendored
|
|
@ -1,70 +0,0 @@
|
|||
name: Deploy Docs
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- 'docs/**'
|
||||
- '.github/workflows/docs.yml'
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pages: write
|
||||
id-token: write
|
||||
|
||||
# Allow one concurrent deployment; don't cancel an in-progress run.
|
||||
concurrency:
|
||||
group: pages
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.11'
|
||||
cache: 'pip'
|
||||
|
||||
- name: Install dependencies
|
||||
run: pip install "jupyter-book<2" furo sphinx-design sphinxcontrib-mermaid
|
||||
|
||||
- name: Build both language books
|
||||
run: |
|
||||
jupyter-book build docs/zh --path-output docs/_build/zh
|
||||
jupyter-book build docs/en --path-output docs/_build/en
|
||||
|
||||
- name: Assemble site
|
||||
run: |
|
||||
rm -rf site
|
||||
mkdir -p site
|
||||
# Per-language books served under /zh/ and /en/.
|
||||
cp -r docs/_build/zh/_build/html site/zh
|
||||
cp -r docs/_build/en/_build/html site/en
|
||||
# Shared figures (referenced as ../figure/* from both books).
|
||||
cp -r docs/figure site/figure
|
||||
# Root redirect to the default (English) docs.
|
||||
cp docs/_landing/index.html site/index.html
|
||||
echo "reme.agentscope.io" > site/CNAME
|
||||
touch site/.nojekyll
|
||||
|
||||
- name: Upload Pages artifact
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
with:
|
||||
path: site
|
||||
|
||||
|
||||
deploy:
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
steps:
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v4
|
||||
2
.github/workflows/pre-commit.yml
vendored
2
.github/workflows/pre-commit.yml
vendored
|
|
@ -23,7 +23,7 @@ jobs:
|
|||
pip install -U setuptools wheel
|
||||
- name: Install
|
||||
run: |
|
||||
pip install -q -e .[dev]
|
||||
pip install -q -e ".[dev,core]"
|
||||
- name: Install pre-commit
|
||||
run: |
|
||||
pre-commit install
|
||||
|
|
|
|||
3
.github/workflows/python-publish.yml
vendored
3
.github/workflows/python-publish.yml
vendored
|
|
@ -35,7 +35,8 @@ jobs:
|
|||
run: python -m build
|
||||
- name: Test installation
|
||||
run: |
|
||||
pip install dist/*.whl
|
||||
WHEEL="$(ls dist/*.whl)"
|
||||
pip install "${WHEEL}[core]"
|
||||
python -c "import reme; print(reme.__version__)"
|
||||
- name: Publish package to PyPI
|
||||
uses: pypa/gh-action-pypi-publish@release/v1
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue