dzcode-io / dzcode.io

Website & mobile app for Algerian open-source community
https://dzcode.io
MIT License
114 stars 41 forks source link

Show the current version of the website in navbar #414

Closed ZibanPirate closed 2 years ago

ZibanPirate commented 2 years ago

Is your feature request related to a problem? Please describe. Not a problem, but it's good to have, it invites people on clicking on that version and visiting the Github repo. it also indicates that we actually are doing proper versioning of the website. this can also be helpful for the staging environment, as you can see which branch/PR is deployed without going to the repo and checking the latest release each time.

Describe the solution you'd like When we build our frontend during deployment CI run, we inject the tag from CI to the build tool (Webpack), then on the frontend, we consume that as a global, and display it on the navbar.