[英]How do I build with Maven on github actions and store the python output
I have a repository (protobuf stuff) that I build with Maven and it puts python package in a directory if you install it locally.我有一个用 Maven 构建的存储库(protobuf 的东西),如果你在本地安装它,它会将 python 包放在一个目录中。 I'd like to build this on a push to GitHub and have this directory created or a python package I can pip install from created.
我想在推送到 GitHub 的基础上构建它并创建此目录或我可以从创建的 pip install 安装的 python 包。 I've been trying GitHub actions but I can't quite figure out that.
我一直在尝试 GitHub 操作,但我不太清楚。 Any thoughts?
有什么想法吗? I'm exploring sub modules next.
接下来我正在探索子模块。 Goal is to have python repository always being working with the latest data from this other repository that creates a python package I'm using.
目标是让 python 存储库始终使用来自创建我正在使用的 python 包的另一个存储库的最新数据。
I do apologize if it was a broad question for you to understand.如果这是一个让您理解的广泛问题,我深表歉意。 But I thought the last sentence was the real problem: Goal is to have python repository always being working with the latest data from this other repository that creates a python package I'm using.
但我认为最后一句话是真正的问题:目标是让 python 存储库始终使用来自创建我正在使用的 python 包的另一个存储库的最新数据。
anyway I solved it using https://github.com/ad-m/github-push-action无论如何我使用https://github.com/ad-m/github-push-action解决了它
allows me to push up the new files generated from the Maven build to my Python repository.允许我将 Maven 构建生成的新文件推送到我的 Python 存储库。 This way whenever someone checks in Repository A, the new Python files get pushed to Repository B, after passing tests of course.
这样,每当有人检查存储库 A 时,新的 Python 文件都会在通过测试后推送到存储库 B。 Thanks.
谢谢。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.