存储库中未检测到 GitHub 个操作工作流

No GitHub Actions workflows detected in repository

我正在尝试按照此 tutorial

使用 GitHub 操作构建 docker 图像并将其推送到 Amazon ECR

我正在尝试在 .github/workflows 目录中为此 repo, so I've created a new workflow 设置 GitHub 操作。

DockerFile成功创建并构建。

现在,在创建 build.yml 并将其提交到 master 分支后,当我转到存储库中的 "Actions" 选项卡时,没有显示任何工作流程。

我认为 .yml file 中可能存在问题,但看不到任何错误。

有人知道哪里出了问题吗?

  push:
    paths:
    - app/**

删除这一行如何?我看到你没有 app/ 目录。详细见:https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#excluding-paths