mirror of
https://github.com/godotengine/godot-website.git
synced 2025-12-31 09:48:43 +03:00
Copy versions.yml file when building the site
This commit is contained in:
4
.github/workflows/build-website.yml
vendored
4
.github/workflows/build-website.yml
vendored
@@ -36,6 +36,10 @@ jobs:
|
||||
|
||||
- name: Build the static website
|
||||
run: bundle exec jekyll build
|
||||
|
||||
# copy the versions.yml file to the root of the _site folder
|
||||
- name: Copy versions.yml to _site
|
||||
run: cp _data/versions.yml _site/versions.yml
|
||||
|
||||
# Publish the build results
|
||||
|
||||
|
||||
@@ -85,6 +85,10 @@ The project is built automatically by GitHub Actions whenever the `master` branc
|
||||
itself should not be deployed, as it only contains the source files. The built version of the website is available as the
|
||||
`published` branch instead.
|
||||
|
||||
The deployed website has to serve a file for the editor to read and check if there are new versions of the Engine available to
|
||||
download. This file is `_data/versions.yml`. It gets copied to `_site/versions.yml` when the website is built using the GitHub
|
||||
Action described in `.github/workflows/build-website.yml`.
|
||||
|
||||
Note that this is not relevant for local development. Locally you would build the website in place and then serve the `_site`
|
||||
folder. See the detailed instructions above.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user