Fix the dev docs robots.txt containing a literal \n instead of a newline (#14347)

# Objective

The robots.txt file for the [dev docs](https://dev-docs.bevyengine.org)
looks like this `User-Agent: *\nDisallow: /`
It should look like this
```
User-Agent: *
Disallow: /
```

## Solution

Use
[`ANSI-C`](https://www.gnu.org/software/bash/manual/bash.html#ANSI_002dC-Quoting)
quoting to properly handle the `\n`

## Testing

- [x] Run the fixed echo command in local terminal.
- [ ] Wait for the dev doces to deploy and observe if the mistake has
been fixed
This commit is contained in:
Brezak 2024-07-17 02:49:07 +09:00 committed by GitHub
parent af865e76a3
commit 293e91564b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -69,7 +69,7 @@ jobs:
run: | run: |
echo "<meta http-equiv=\"refresh\" content=\"0; url=bevy/index.html\">" > target/doc/index.html echo "<meta http-equiv=\"refresh\" content=\"0; url=bevy/index.html\">" > target/doc/index.html
echo "dev-docs.bevyengine.org" > target/doc/CNAME echo "dev-docs.bevyengine.org" > target/doc/CNAME
echo "User-Agent: *\nDisallow: /" > target/doc/robots.txt echo $'User-Agent: *\nDisallow: /' > target/doc/robots.txt
rm target/doc/.lock rm target/doc/.lock
- name: Upload site artifact - name: Upload site artifact