# Publishing Docs based on Environment

**URL:** <https://discourse.greatexpectations.io/t/publishing-docs-based-on-environment/261>\
**Category:** Archive\
**Tags:** how-to\
**Created:** [June 16, 2020, 6:21pm UTC](https://discourse.greatexpectations.io/t/publishing-docs-based-on-environment/261 "2020-06-16T18:21:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ddalton](https://avatars.discourse-cdn.com/v4/letter/d/ba8739/32.png) [@ddalton](https://discourse.greatexpectations.io/u/ddalton)\
**Post date:** [June 16, 2020, 6:21pm UTC](https://discourse.greatexpectations.io/t/publishing-docs-based-on-environment/261/1 "2020-06-16T18:21:45Z")

</div>

Is there a way to specify in a script that runs the checkpoint to only create the data docs either locally or on S3? I see in my checkpoint that it says validation\_operator\_name: action\_list\_operator and that in the great\_expectations.yml, it includes the following:

```
validation_operators:
  action_list_operator:
    # To learn how to configure sending Slack notifications during evaluation
    # (and other customizations), read: https://docs.greatexpectations.io/en/latest/reference/validation_operators/action_list_validation_operator.html
    class_name: ActionListValidationOperator
    action_list:
    - name: store_validation_result
      action:
        class_name: StoreValidationResultAction
    - name: store_evaluation_params
      action:
        class_name: StoreEvaluationParametersAction
    - name: update_data_docs
      action:
        class_name: UpdateDataDocsAction

```

But I’m not quite sure how to specify the UpdateDataDocsAction to be environment dependent. I don’t want users run GE locally to write to S3 and when running in production, I don’t need to access the uncommitted file to try to make local docs. Thank you in advance for any guidance/help.

---

<div class="post-metadata">

**Author:** ![jpcampbell42](https://avatars.discourse-cdn.com/v4/letter/j/838e76/32.png) [@jpcampbell42](https://discourse.greatexpectations.io/u/jpcampbell42)\
**Post date:** [June 16, 2020, 6:27pm UTC](https://discourse.greatexpectations.io/t/publishing-docs-based-on-environment/261/2 "2020-06-16T18:27:28Z")

</div>

Great Question! You can update your `update_data_docs` action to add a `site_names` key, along the lines of the following:

```auto
    ...
    - name: update_data_docs
      action:
        class_name: UpdateDataDocsAction
        site_names:
          - ${ACTIVE_SITE}

```

Then, you can set the ACTIVE\_SITE variable to be the name of the site you’d like to build (like `s3_site` or `local_site`
