bevy/.github/workflows
BD103 2f87bb8c1f
Don't deploy docs when working on a fork (#13278)
# Objective

- Some developers enable Github Actions for their fork and commit
directly to main. This triggers the `docs.yml` action, which attempts to
deploy the documentation even if Github Pages is not enabled. (It also
creates a `CNAME` file specific to Bevy and should not be used in forks,
even for testing.)
- For an example, see [this
run](https://github.com/tychedelia/bevy/actions/runs/8978912060/job/24660082729).

## Solution

- Only attempt to deploy docs when running from the main Bevy
repository.
- This does not affect us checking `cargo doc` on pull requests, since
that it done in `ci.yml`.

## Testing

It's difficult to test this, but you'd probably:

1. Fork Bevy
2. Cherry pick this PR's commits onto the main branch of your fork.
3. Push another commit to the main branch, triggering Github Actions.
4. Check the Github Actions job summary to ensure that the
`build-and-deploy` job is skipped.
2024-05-08 14:15:21 +00:00
..
action-on-PR-labeled.yml Bump actions/github-script from 6 to 7 (#10653) 2023-11-20 09:01:27 +00:00
ci-comment-failures.yml Bump actions/github-script from 6 to 7 (#10653) 2023-11-20 09:01:27 +00:00
ci.yml Bump crate-ci/typos from 1.20.10 to 1.21.0 (#13256) 2024-05-06 19:12:41 +00:00
daily.yml Remove unused nightly toolchain environmental variable (#13037) 2024-04-19 21:17:38 +00:00
dependencies.yml add cancel in progress support to automated CI checks (#11130) 2024-02-28 16:07:29 +00:00
docs.yml Don't deploy docs when working on a fork (#13278) 2024-05-08 14:15:21 +00:00
post-release.yml Bump peter-evans/create-pull-request from 5 to 6 (#11712) 2024-02-09 06:01:31 +00:00
release.yml Switch to ui_test in compile fail tests. (#12810) 2024-04-27 00:00:57 +00:00
validation-jobs.yml install rust target for arm ios simulator (#13077) 2024-04-23 20:27:21 +00:00
weekly.yml Remove unused nightly toolchain environmental variable (#13037) 2024-04-19 21:17:38 +00:00
welcome.yml Bump actions/github-script from 6 to 7 (#10653) 2023-11-20 09:01:27 +00:00