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

how to grab the latest release from GitHub with JitPack?

JitPack 可以配置成只抓取最新版本吗?或者,我需要手动创建版本吗?

GitHub有个simple process获取最新:

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.

在学习如何 的情况下,这样我就可以从 JitPack 中提取更新的工件。

没有Jitpack needs a Release tag, commit hash or -SNAPSHOT(抓取一个分支的最新源码)。

这意味着您至少需要创建一个标签(并使用例如 allegro/axion-release-plugin 来自动创建 GitHub 版本。

can query the latest build,但是 Jitpack 需要一个固定的引用才能有一个可重复的构建。