evylang / todo

0 stars 0 forks source link

Rework `version.json` generation #48

Closed juliaogris closed 5 months ago

juliaogris commented 5 months ago

Add frontend/version.json with contents

{
    "version": "v0.0.0"
}

to repo.

In firebase deploy create out/firebase/public/version.json with

echo '{ "version": "$(git describe --tags --dirty  --always)" }' | jq > frontend/version.json

For each subdomain deployment add sym-link to root version.json and re-write rules to firebase.json so that we can also reach: https://docs.evy.dev/version

juliaogris commented 5 months ago

We have already added the firebase rewrite config for https://play.evy.dev/version see e652f77 in PR evylang/evy#213

We are not moving the version.json creation to a deploy step as we want to serve version.json with evy serve as well.