Merge branch 'json-version-file'

This commit is contained in:
Emi
2024-05-02 11:02:08 +02:00
3 changed files with 5 additions and 8 deletions

View File

@@ -36,10 +36,7 @@ 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

View File

@@ -85,10 +85,6 @@ 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.

4
versions.json Normal file
View File

@@ -0,0 +1,4 @@
---
---
{{ site.data.versions | jsonify }}