【问题标题】:how to grab the latest release from GitHub with JitPack?如何使用 JitPack 从 GitHub 获取最新版本?
【发布时间】:2016-06-30 09:41:43
【问题描述】:

可以配置 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.

在学习git, JitPack and GitHub relate 如何相互联系的背景下,这样我就可以从 JitPack 中提取更新的工件。

【问题讨论】:

    标签: java git github gradle jitpack


    【解决方案1】:

    否Jitpack needs a Release tag, commit hash or -SNAPSHOT(获取分支的最新来源)。

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

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

    【讨论】:

      猜你喜欢
      • 2021-10-20
      • 1970-01-01
      • 1970-01-01
      • 2023-03-20
      • 1970-01-01
      • 1970-01-01
      • 2016-06-26
      • 2010-10-15
      • 2016-04-26
      相关资源
      最近更新 更多