Skip to content

Commit

Permalink
splitting workflow into two files
Browse files Browse the repository at this point in the history
  • Loading branch information
glennga committed Oct 25, 2024
1 parent f53f151 commit 3dac4ce
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 37 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
Original file line number Diff line number Diff line change
@@ -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 ]

Expand Down Expand Up @@ -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 }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down

0 comments on commit 3dac4ce

Please sign in to comment.