bevy/.github
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
..
actions/install-linux-deps Create custom action for installing Linux dependencies (#12850) 2024-04-13 22:34:48 +00:00
contributing Update engine_style_guide with guideline to link to the error code when using bevy engine error codes (#12253) 2024-03-02 14:42:29 +00:00
example-run new format for ci config file (#13154) 2024-05-02 22:51:47 +00:00
ISSUE_TEMPLATE Add a performance regression issue template (#8279) 2023-04-04 01:04:18 +00:00
linters Remove markdown dead link check (#4839) 2022-05-25 05:08:34 +00:00
start-mobile-example Remove unused variable (#10966) 2023-12-13 20:41:45 +00:00
start-wasm-example Rename functions and variables to follow code style (#10961) 2023-12-13 20:20:24 +00:00
workflows Don't deploy docs when working on a fork (#13278) 2024-05-08 14:15:21 +00:00
dependabot.yml dependabot: use new C-Dependencies label 2021-07-13 12:51:48 -07:00
FUNDING.yml Update funding link (#12425) 2024-03-11 21:46:04 +00:00
pull_request_template.md Add Testing section to the PR template (#13166) 2024-05-02 00:00:00 +00:00