简体   繁体   English

如何使用JitPack从GitHub获取最新版本?

[英]how to grab the latest release from GitHub with JitPack?

Can JitPack be configured just to grab the latest release? 可以配置JitPack只是为了获取最新版本吗? Or, do I need to create releases manually? 或者,我是否需要手动创建版本?

GitHub has a simple process to get the latest: GitHub有一个简单的过程来获取最新信息:

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. 在学习git,JitPack和GitHub如何相互关联的上下文中,以便我可以从JitPack中获取更新的工件。

No Jitpack needs a Release tag, commit hash or -SNAPSHOT (to grab the latest sources of a branch). 没有Jitpack需要Release标记,提交哈希或-SNAPSHOT (以获取分支的最新源)。

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. 这意味着您需要至少创建一个标记(并使用例如allegro/axion-release-plugin来自动创建GitHub版本。

You can query the latest build , but Jitpack needs a fixed reference in order to have a repeatable build. 可以查询最新版本 ,但Jitpack需要一个固定的引用才能进行可重复的构建。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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