Prompt Buddy logoPrompt Buddy

github · GitHub Actions Docs

Actions Deploying to a specific environment - GitHub Docs

Configures GitHub Actions jobs to target specific deployment environments to leverage environment-specific protection rules and variables.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Actions Deploying to a specific environment - GitHub Docs

Configures GitHub Actions jobs to target specific deployment environments to leverage environment-specific protection rules and variables.

When To Use

Use when you need to direct a job to a specific deployment target to apply environment protection rules, secrets, or concurrency limits.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/actions-how-tos-write-workflows-deploying-to-a-specific-environment-gith-workflow-guide.mdA guide explaining how to specify and use deployment environments within GitHub Actions workflows.Questions about a guide explaining how to specify and use deployment environments within GitHub Actions workflows.
examples/actions-how-tos-write-workflows-deploying-to-a-specific-environment-gith.textA YAML workflow configuration demonstrating how to use the environment keyword to target a specific deployment environment in GitHub Actions.Exact payloads, commands, or snippets shown in A YAML workflow configuration demonstrating how to use the environment keyword to target a specific deployment enviro...
examples/actions-how-tos-write-workflows-deploying-to-a-specific-environment-gith-2.textA YAML workflow configuration demonstrating how to use the environment keyword to target a specific deployment environment in GitHub Actions.Exact payloads, commands, or snippets shown in A YAML workflow configuration demonstrating how to use the environment keyword to target a specific deployment enviro...
examples/actions-how-tos-write-workflows-deploying-to-a-specific-environment-gith-3.textA YAML workflow configuration demonstrating how to use the environment keyword to target a specific deployment environment in GitHub Actions.Exact payloads, commands, or snippets shown in A YAML workflow configuration demonstrating how to use the environment keyword to target a specific deployment enviro...

What This Skill Covers

    • GitHub Actions / - How-tos / - Write workflows / - Choose what workflows do / - Deploy to environment
  • Main sections: In this article, Prerequisites, Using an environment in a workflow.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://docs.github.com/en/actions/how-tos/write-workflows/choose-what-workflows-do/deploy-to-environment