1
0
mirror of synced 2026-01-06 15:01:04 -05:00
Files
docs/content/actions/using-jobs/using-environments-for-deployment.md

1009 B

title, shortTitle, intro, versions, redirect_from
title shortTitle intro versions redirect_from
Using environments for deployment Environments Specify a deployment environment in your workflow.
fpt ghes ghec
* > 3.0 *
/actions/using-jobs/using-environments-for-jobs

{% data reusables.actions.enterprise-github-hosted-runners %}

About environments

{% data reusables.actions.about-environments %}

Each job in a workflow can reference a single environment. Any protection rules configured for the environment must pass before a job referencing the environment is sent to a runner. The job can access the environment's secrets only after the job is sent to a runner.

When a workflow references an environment, the environment will appear in the repository's deployments. For more information about viewing current and previous deployments, see "AUTOTITLE."

Using an environment in a workflow

{% data reusables.actions.environment-example %}