Skip to content

A programming framework for agentic AI

generate docs on push, deploy on main

Jack Gerrits88e1ee2a3b56
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index e2f97269d..700b03646 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -4,7 +4,9 @@ name: Docs
on:
# Runs on pushes targeting the default branch
push:
- branches: ["main"]
+ branches:
+ - main
+ - staging
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
@@ -115,6 +117,7 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: [build-02, build-04]
+ if: ${{ needs.build-02.result == 'success' && needs.build-04.result == 'success' && github.ref == 'refs/heads/main' }}
steps:
- uses: actions/download-artifact@v4
with: