> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Deploy with GitHub Actions | Human guide

> Have your agent prepare a GitHub Actions workflow for Play deployment.

```deepline-prompt theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
/deepline-gtm Prepare GitHub Actions to validate and deploy [Play directory] to [workspace]. Show the workflow and wait for approval before publishing.
```

Use this path for GitHub Enterprise Server or organizations that cannot install
the Deepline GitHub App. For GitHub.com, start with
[Deploy from GitHub](https://deepline.com/docs/human/sdk-v2/git-deploys.md).

The agent prepares one pinned-CLI workflow. Pull requests validate source with
an isolated org key. Protected production jobs deploy the selected Plays
together from the checkout.

## Prepare the inputs and access

Provide the repository, reviewed Play directory, manifest, validation org,
and production org. Keep `monitors: []` in the manifest for this directory
workflow; Monitor files require a separate deployment path.

Set `DEEPLINE_CLI_VERSION` as a repository variable. Store
`DEEPLINE_CHECK_API_KEY` as a repository secret for the isolated validation
org. Store `DEEPLINE_API_KEY` in the protected `deepline-production`
environment for the production org. Restrict that environment to `main`;
add reviewers when approval is required.

Configure provider connections and declared Play secrets in each org.
Keep production keys out of pull-request jobs. Fork commits need review on a
maintainer-controlled branch because forks cannot use repository secrets.
Do not expose secrets through `pull_request_target`.

## Enable and verify publication

Review the workflow before enabling it. Confirm its source directory, selected
files, target org, and production branch. A manual run must use the
approved production branch.

Check linked-repository ownership first. Directory deployment can replace its
live Play; the next owner push can replace that version again. Choose the
repository link or Actions as the deployment owner.

Inspect the deployment receipt, warnings, and live versions after publication.
Restore a previous revision for rollback, then revert or fix the source so the
next deployment agrees. Deleting source or unlinking leaves live Plays running;
decommission their triggers and callers separately.

> [!TIP]
>
> * Keep the deployed commit and revision ID with the workflow result.
> * Check publication in Deepline, not only the Actions exit code. A deployment
>   with warnings can exit zero.
> * Test changed runtime behavior with approved synthetic input in an internal
>   or test org.

[Review and operate a workflow](https://deepline.com/docs/human/templates.md#review-and-operate-a-workflow)
covers authorization, pilots, and recovery.

[Agent guide: CLI and SDK instructions →](https://deepline.com/docs/sdk-v2/github-deployments.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.