Skip to content

armgit / camel

Public Imported from GitHub
0

🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org

chore: update deploy and publish workflow

Isaac Jin06193cea7617
diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml
index 1c9507d0a..6b6b4721f 100644
--- a/.github/workflows/documentation.yml
+++ b/.github/workflows/documentation.yml
@@ -1,31 +1,40 @@
name: Build and deploy camel documents
+
on:
push:
branches: [ "master", "qa" ]
workflow_dispatch:
+
permissions:
- contents: write
+ contents: write
+
jobs:
docs:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v3
- - name: Set up Python environment and install dependencies
- uses: ./.github/actions/camel_install
- with:
- python-version: "3.10"
- - name: Install Pandoc
- run: sudo apt-get install -y pandoc
- - name: Sphinx build
- run: |
- cd docs
- poetry run make html
- - name: Deploy
- uses: peaceiris/actions-gh-pages@v3
- if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master'}}
- with:
- publish_branch: gh-pages
- github_token: ${{ secrets.GITHUB_TOKEN }}
- publish_dir: docs/_build/html/
- force_orphan: true
+ - name: Checkout code
+ uses: actions/checkout@v4
+
+ - name: Set up Python environment and install dependencies
+ uses: ./.github/actions/camel_install
+ with:
+ python-version: "3.10"
+
+ - name: Install Pandoc
+ run: sudo apt-get install -y pandoc
+
+ - name: Sphinx build
+ run: |
+ cd docs
+ poetry run make html
+
+ - name: Deploy
+ uses: peaceiris/actions-gh-pages@v4
+ if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
+ with:
+ publish_branch: gh-pages
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ publish_dir: docs/_build/html/
+ force_orphan: true
+ cname: docs.camel-ai.org
diff --git a/.github/workflows/publish_release.yml b/.github/workflows/publish_release.yml
index d31853b49..19c4b2e5a 100644
--- a/.github/workflows/publish_release.yml
+++ b/.github/workflows/publish_release.yml
@@ -21,6 +21,7 @@ jobs:
- name: Build and publish to PyPI
uses: JRubics/[email protected]
with:
+ python_version: '3.10'
pypi_token: ${{ secrets.PYPI_API_KEY }}
create-release:
diff --git a/CNAME b/CNAME
deleted file mode 100644
index 03d397fbc..000000000
--- a/CNAME
+++ /dev/null
@@ -1 +0,0 @@
-docs.camel-ai.org
\ No newline at end of file