简体   繁体   English

如何在 github 操作上使用 Maven 构建并存储 python 输出

[英]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.

相关问题 python function 的 output 如何保存到 GitHub 动作? - How to save output of python function to GitHub actions? 如何将 Travis CI 配置转换为 GitHub Actions 并使用多个版本的 Python 进行测试? - How do I convert Travis CI configuration to GitHub Actions and test with several versions of Python? 我如何简单地从 github 回购中运行 python 脚本并执行操作 - How do I simply run a python script from github repo with actions 如何将'count'变量的输出存储到列表中? (蟒蛇) - How do i store the output of the 'count' variable into a list? (python) 如何使用 Github 操作让 Selenium 测试在 python 中运行? - How can I get Selenium tests to run in python with Github actions? 使用 GitHub Actions,您如何将 flake8 退出代码存储为变量而不是使工作流程失败? - Using GitHub Actions, how do you store flake8 exit code as a variable instead of failing the workflow? GitHub,如何在操作中添加商店 python 代码覆盖率报告(使用 coverage.py)并向回购添加徽章? - GitHub, how to add store python code coverage report(using coverage.py) in actions and add badge to repo? 如何访问 Github Actions Azure 函数部署的详细输出? - How do you access the verbose output from a Github Actions Azure functions deployment? 在python脚本中进行Maven构建 - Do a maven build in a python script 如何从 GitHub 操作运行 Python 代码 - How to run Python code from GitHub actions
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM