Skip to main content
Human guide: task steps and agent prompt → Use this workflow when your organization cannot install the Deepline GitHub App, or uses GitHub Enterprise Server. For GitHub.com, start with Deploy from GitHub. Actions checks out the source and runs deepline plays deploy on its runner. Pull requests validate source; production jobs deploy a selected directory.

Prepare the source and manifest

Commit one default-exported async Play function per *.play.ts file. The file name supplies its default Play name; optional export const config can set a name, description, and bindings. Keep the files under plays/ for this example. Store provider credentials and active Play secrets in Deepline. Keep customer data, credentials, and live provider responses out of GitHub. Commit plays/deepline.json:
Globs are relative to that directory. The validation job checks every tracked *.play.ts below it; deployment selects the manifest’s complete Play set. Keep those scopes aligned if you narrow the manifest. Directory deployment cannot deploy Monitor files. Keep monitors: [] for this workflow. Use linked-repository deployment or a separate reviewed Monitor deployment for those files.

Pin the CLI and configure credentials

Select a tested CLI version. You can inspect the current release with:
Save the selected version in the repository variable DEEPLINE_CLI_VERSION. Configure these Actions secrets: Restrict deepline-production to main. Add environment reviewers if deployment requires approval. Each key must identify the intended org. Configure its provider connections and every active Play secret declared by the source. Use non-production provider credentials in the validation org. This example supports pull requests from the same repository. GitHub withholds repository secrets from forks. Review fork commits on a maintainer-controlled branch; never expose secrets through pull_request_target. Keep production keys out of pull-request jobs. Do not select an org from pull-request input.

Add the workflow

Create .github/workflows/deepline.yml with the complete workflow below. Change PLAY_DIRECTORY and PLAY_MANIFEST for a different source root or filename.
Pull requests check source without publishing or starting a Play run. A merge or approved manual run on main deploys the selected directory. Changed Plays are validated and registered before their live revisions are promoted together. Unchanged Plays are skipped. The CLI builds files from the checkout. --repo, --ref, and --commit record provenance; they do not fetch or select source. Directory deployment has no branch-head guard. This workflow serializes production jobs; the caller still owns which commit is deployed.

Verify the deployment

  1. Open a pull request that changes a Play.
  2. Confirm Validate Plays passes.
  3. Merge the reviewed change.
  4. Confirm Publish Plays succeeds.
  5. Inspect the deployment receipt and warnings:
Failed or cancelled deployments exit non-zero. succeeded_with_warnings and superseded exit zero; an exit code alone does not establish publication. Confirm the intended source commit and live revision:
Deployment details mark SDK updated when a new SDK changes the artifact without a source/import change. Test runtime behavior with approved synthetic input in an internal or test org. Keep normal production publication in CI.

Roll back and restore source agreement

Copy the previous immutable revision ID from plays versions, then promote it:
Read the live version again. Revert or fix GitHub source so the next deployment agrees with the restored revision.

A Play a linked repository owns

Directory deployment can replace a linked repository’s live Play. The receipt warns about the owning repository; its next production push replaces that version. Choose one source of truth before enabling this workflow:
  • Keep the link and deploy reviewed source through it.
  • To retire the link, get its ID from deepline git list, then unlink it:
Unlinking releases repository ownership and leaves live Plays running. Deleting a Play file also leaves its live Play running. Decommission schedules, webhooks, callers, and any related Monitors separately. Build a Play covers authoring. Continue with Integrate a Play into your app for production callers.