Skip to content

Commit

Permalink
chore: update deploy and publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
WHALEEYE committed Oct 11, 2024
1 parent c6b4a48 commit 06193ce
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 21 deletions.
49 changes: 29 additions & 20 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions .github/workflows/publish_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 0 additions & 1 deletion CNAME

This file was deleted.

0 comments on commit 06193ce

Please sign in to comment.