OwnTube-tv / web-client

Portable video client for PeerTube in React Native
https://owntube-tv.github.io/web-client/
The Unlicense
3 stars 12 forks source link

Add a commit link to see what build is deployed #14 #20

Closed mblomdahl-bot closed 7 months ago

mblomdahl-bot commented 7 months ago

Local runtime:

  1. An extra build-info.json is added in the source root with mock info
  2. Development builds compile without further workarounds

Deployed runtime:

  1. When triggering a build, GitHub Actions extracts the info of interest
  2. Build information is injected in the React project, overwriting mock data
  3. The commit and build timestamp is stamped into the compiled build
  4. Build output is uploaded and published to GitHub Pages

Resolves #14.

Proof That It Works

See https://mblomdahl-bot.github.io/web-client/ for the GitHub Actions deployment from my fork:

image
mblomdahl-bot commented 7 months ago

After the update in c9a3ae2.... 🙃

image