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.
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
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/actions-how-tos-write-workflows-deploying-to-a-specific-environment-gith-workflow-guide.md | A 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.text | A 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.text | A 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.text | A 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
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - 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
