Elinvention / gnome-shell-extension-nasa-apod

Change your wallpaper daily to the NASA's astronomy picture of the day
https://extensions.gnome.org/extension/1202/nasa-apod/
GNU General Public License v3.0
120 stars 23 forks source link

Use tagging in repo to mark releases #5

Open quasipedia opened 7 years ago

quasipedia commented 7 years ago

Great extension, and great that is actively maintained. Every time I see an upgrade, I need to check the commit history to see what's new, and remember at what point the previous release was... released.

Using a git tag would solve that problem as - provided one uses semver - github will pick up those as releases automatically.

Bonus feature: now that the extension has a "settings" and "about" space, the release notes could be displayed there directly (you can use github API to pull those directly from the git tag comment...).

Thanks for maintaining this inspiring little extension! :)

Elinvention commented 7 years ago

Thank you for your support and feedback. I'm going to follow your suggestion and I just tagged version 7.

I'll also try to implement the release notes directly in the settings, although I'd like not to use github's api to download something that could be in a simple text file. Can GitHub generate such file?

quasipedia commented 7 years ago

Since the extension already requires the Internet to work, I would simply use the API and be done with it (eventually caching the result until an upgrade). But - should I wish to have it packaged with the extension itself - I would use some CLI magic (the actual magic to be performed - I guess - depends by the OS you are on) around the git show <your-tag-here> command during the build stage of the extension.

RoSk0 commented 5 years ago

Hi ,

Thanks for the extension!

Familiarise yourself with https://semver.org/.

I would also recommend using of the free CI services for this task, for example Travis CI.

If you can script release creation from commit ID then you can use this article https://docs.travis-ci.com/user/deployment/releases to upload created during build phase release artefact to the GitHub.