diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml new file mode 100644 index 00000000..3a23312c --- /dev/null +++ b/.github/workflows/docs.yaml @@ -0,0 +1,40 @@ +name: Docs +run-name: 👁️ ${{ github.actor }} has pushed a new commit! +on: [ push ] + +# Note: this doesn't deploy anything for now! It just pushes to the gh-pages branch. +jobs: + Pages: + runs-on: ubuntu-latest + + steps: + - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." + + - name: Check out repository code + uses: actions/checkout@v4 + - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." + + - name: Set up Python Poetry + uses: mishaga/action-poetry@1 + with: + python-version: "3.12" + poetry-version: "latest" + shell: "bash" + + - name: Install repository with Poetry + run: | + poetry install --with docs + + - name: Build the documentation + working-directory: docs + run: | + source $(poetry env info --path)/bin/activate + make html + + - name: Deploy build/html to gh-pages + uses: s0/git-publish-subdir-action@develop + env: + REPO: self + BRANCH: gh-pages + FOLDER: docs/build/html + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/github-actions.yaml b/.github/workflows/tests.yaml similarity index 61% rename from .github/workflows/github-actions.yaml rename to .github/workflows/tests.yaml index 877311a7..f7f59174 100644 --- a/.github/workflows/github-actions.yaml +++ b/.github/workflows/tests.yaml @@ -1,4 +1,4 @@ -name: Couchbase Agent Catalog CI/CD +name: CI/CD Tests run-name: 👁️ ${{ github.actor }} has pushed a new commit! on: [ push ] @@ -45,38 +45,3 @@ jobs: # run: poetry run bash -c "cd libs/agentc_cli && pytest -v" - run: echo "🍏 This job's status is ${{ job.status }}." - - Pages: - runs-on: ubuntu-latest - - steps: - - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." - - - name: Check out repository code - uses: actions/checkout@v4 - - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." - - - name: Set up Python Poetry - uses: mishaga/action-poetry@1 - with: - python-version: "3.12" - poetry-version: "latest" - shell: "bash" - - - name: Install repository with Poetry - run: | - poetry install --with docs - - - name: Build the documentation - working-directory: docs - run: | - source $(poetry env info --path)/bin/activate - make html - - - name: Deploy build/html to gh-pages - uses: s0/git-publish-subdir-action@develop - env: - REPO: self - BRANCH: gh-pages - FOLDER: docs/build/html - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/README.md b/README.md index 136cd7ac..2a7ba106 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # agent-catalog (Couchbase Agent Catalog) -[![Couchbase Agent Catalog GitHub Actions](https://github.com/couchbaselabs/agent-catalog/actions/workflows/github-actions.yaml/badge.svg)](https://github.com/couchbaselabs/agent-catalog/actions/workflows/github-actions.yaml) +[![CI/CD Tests](https://github.com/couchbaselabs/agent-catalog/actions/workflows/tests.yaml/badge.svg)](https://github.com/couchbaselabs/agent-catalog/actions/workflows/tests.yaml) The mono-repo for the Couchbase Agent Catalog project.