YML文件中显然错误的工作目录
嘿,我目前正在开发一个 Github Actions 工作流程,该工作流程会自动将我的 Hugo 网站部署到我的服务器。在构建网站的步骤中,
- name: build Hugo website
run: |
pwd
ls -l
hugo
working-directory: Website/jasminsweets_ws
我收到此错误,它不是网站文件所在目录的正确路径:
Error: An error occurred trying to start process '/usr/bin/bash' with working directory '/home/runner/work/webshop-jasmin/webshop-jasmin/Website/jasminsweets_ws'. No such file or directory
我尝试了很多方法,例如使用不同的路径,但仍然无法修复错误。我将不胜感激任何帮助。谢谢!
我的存储库: https://github.com/Team-Webshop-Jasmin/webshop-jasmin (网站的文件位于Website/jasminsweets_ws)
Hey I'm currently working on a Github Actions workflow that automatically deploys my Hugo Website to my server. In the step of building the website
- name: build Hugo website
run: |
pwd
ls -l
hugo
working-directory: Website/jasminsweets_ws
I get this error that its not the right path to my directory where the files of the website are in:
Error: An error occurred trying to start process '/usr/bin/bash' with working directory '/home/runner/work/webshop-jasmin/webshop-jasmin/Website/jasminsweets_ws'. No such file or directory
I tried a lot of things like using different paths but it still won't fix the error. I would appreciate any help. Thanks!
My repository: https://github.com/Team-Webshop-Jasmin/webshop-jasmin (the files of the website are in Website/jasminsweets_ws)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论