-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display version on deployed github page #7
Comments
The version string can be extracted during the build of the GH-pages. We do something similar for Secvisogram - but maybe an easier method can be found (e.g. executing |
I tried to implement an easy solution with Leveraging This should do the trick (for now). |
TIL: In e53a94b I switched to the even simpler concept of using the version info of |
@ThomasJunk: Actually, the checkout/action does only do a shallow checkout by default (which does not capture the tags). In order to do that, you have to run The nice thing about this approach is, that it already works in development (with each commit) without having to update the version in the package.json ;-) |
@ThomasJunk see https://github.com/csaf-poc/csaf_distribution/blob/7d3c3a68df05e48640e8e2eaec53ee23bb370285/Makefile#L40-L58 for an example that results into a semver compatible version after using git describe in different situations within Github Actions. If fitting, please use that method. |
Is it necessary / meaningful to do this as a github action? As a hint: https://stackoverflow.com/a/55427831/411645 shows a "recipe" for such a hook. Instead of using Or use npm version to accomplish our task. |
In general, I'm not a big fan of the
Therefore, I would like to rely on Git tags instead. Nevertheless, if there is a way to keep tags and the version the BTW: GithubActions use a shallow checkout - that's why I linked to our solution for Secvisogram. |
As far as my understanding goes
There is even a possibility to use the latest git-tag as a source
which meets the requirement of
The And this should run too in the context of a github action. |
Just to remind: Using the latest git tag is not enough for development versions as it would display the wrong version. |
Not yet automated via github actions. |
Currently there is no user accessible way to tell which version is served as a Github page.
That should be possible.
The text was updated successfully, but these errors were encountered: