Skip to content

armgit / E2B

Public Imported from GitHub
0

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

ci: publish releases from the `deployment` GitHub environment (#1850)

devin-ai-integration[bot]8b75907405d5
diff --git a/.github/workflows/publish_packages.yml b/.github/workflows/publish_packages.yml
index cc6512f98..3f8f9d9f9 100644
--- a/.github/workflows/publish_packages.yml
+++ b/.github/workflows/publish_packages.yml
@@ -16,6 +16,10 @@ jobs:
test:
name: Build and test SDK
runs-on: ubuntu-22.04
+ # Declared here rather than on the `publish` job in release.yml: a job that
+ # `uses:` a reusable workflow cannot carry `environment`. The environment's
+ # deployment branch policy only allows main.
+ environment: deployment
steps:
- uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1.12.0
id: app-token