Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Add GH action for rebuilding docs sandbox template

Vasek Mlejnsky0176383115fe
diff --git a/.github/workflows/build_docs_sandbox_template.yml b/.github/workflows/build_docs_sandbox_template.yml
new file mode 100644
index 000000000..28606442d
--- /dev/null
+++ b/.github/workflows/build_docs_sandbox_template.yml
@@ -0,0 +1,33 @@
+name: Build E2B docs sandbox template
+
+on:
+ push:
+ paths:
+ - "apps/docs/sandbox/**"
+ branches:
+ - main
+
+concurrency: ${{ github.workflow }}-${{ github.ref }}
+
+jobs:
+ publish:
+ name: Build
+ runs-on: ubuntu-22.04
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v3
+
+ - name: Setup Node
+ uses: actions/setup-node@v3
+ with:
+ node-version: "18.x"
+ registry-url: "https://registry.npmjs.org"
+
+ - name: Install E2B CLI
+ run: npm install -g @e2b/cli
+
+ - name: Build template
+ run: e2b build
+ working-directory: ./apps/docs/sandbox
+ env:
+ E2B_ACCESS_TOKEN: ${{ secrets.E2B_ACCESS_TOKEN }}