Github发布zip,仅包含来自repo的部分代码 [英] Github release zip containing only partial code from repo

查看:91
本文介绍了Github发布zip,仅包含来自repo的部分代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尽管Github提供了发布软件的方式,但我不知道是否可以仅指定要发布并以zip文件下载的当前主存储库中的某些文件.

while the Github provide a way to releasing software, I don't know if possible to specify just some files of the current master repository to be released and be downloaded as a zip file.

我想为用户提供从整个存储库下载某些文件夹/文件的可能性,例如说;我的repoo中有3个文件,分别是 file_1.js file_2.js file_3.js -我要制作 file_3.js 作为zip文件 my_app_v1.0.zip 的可下载版本.

I want to offer users the possibility to download a certain folder/files from the whole repository, like say; I have 3 files in my repoo, file_1.js, file_2.js, file_3.js - I want to make file_3.js a downloadable release as a zip file my_app_v1.0.zip.

那怎么可能?

感谢任何想法:)

推荐答案

此版本是一种将二进制文件附加到Git存储库中的标签的方法(除了源代码本身的存档).
您可以根据需要附加任意数量的二进制文件,这意味着您可以根据需要构建和打包任意版本.
如果您选择以这种方式打包,则其中一个二进制文件可以包含部分回购代码库.

The release is a way to attached binaries to a tag in your Git repo (in addition of the archive of the source code itself).
You can attach as many binaries as you want, which means you can build and package as many releases as you need.
One of those binaries can include a partial set of your repo codebase, should you chose to package it that way.

但是发行版不是动态打包的,并且不一定包含回购源.它通常包括回购构建的结果.或您希望成为发行版一部分的任何其他元素.

But a release isn't dynamically packaged, and it doesn't necessarily include the repo sources. It generally include the result of a repo build. Or any other element that you want to be part of a release.

这篇关于Github发布zip,仅包含来自repo的部分代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆