简体   繁体   中英

how to grab the latest release from GitHub with JitPack?

Can JitPack be configured just to grab the latest release? Or, do I need to create releases manually?

GitHub has a simple process to get the latest:

On GitHub, navigate to the main page of the repository.

Releases tabUnder your repository name, click Releases.

Latest release tag

Right click on Latest Release and copy the URL to share it. 

The suffix of this URL is always /releases/latest.

in the context of learning how git, JitPack and GitHub relate to each other, so that I can pull in an updated artifact from JitPack.

No Jitpack needs a Release tag, commit hash or -SNAPSHOT (to grab the latest sources of a branch).

That means you need to create at least a tag (and use for instance allegro/axion-release-plugin to automate the creation of a GitHub release.

You can query the latest build , but Jitpack needs a fixed reference in order to have a repeatable build.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM