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:
*.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: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.
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
- Open a pull request that changes a Play.
- Confirm Validate Plays passes.
- Merge the reviewed change.
- Confirm Publish Plays succeeds.
- Inspect the deployment receipt and warnings:
succeeded_with_warnings and
superseded exit zero; an exit code alone does not establish publication.
Confirm the intended source commit and live revision:
Roll back and restore source agreement
Copy the previous immutable revision ID fromplays versions, then promote it:
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: