我们经常发布文档更新,此页面的翻译可能仍在进行中。有关最新信息,请访问英文文档。如果此页面上的翻译有问题,请告诉我们

Starting with preconfigured workflow templates

GitHub provides preconfigured workflow templates to automate your workflow or create a CI workflow for specific languages and frameworks.

GitHub 操作 可用于 GitHub Free、GitHub Pro、GitHub Team、GitHub Enterprise Cloud 和 GitHub One。 GitHub 操作 不适用于使用旧版每仓库计划的公共或私有仓库。 更多信息请参阅“GitHub 的产品”。

本文内容

About workflow templates

GitHub analyzes your code and shows you the CI templates that are the best fit for your repository. For example, if your repository contains Node.js code, you'll see suggestions for Node.js projects. You can use workflow templates as a starting place to build your custom workflow or use them as-is.

You can browse the full list of CI templates in the actions/starter-workflows repository. You can also find templates for automating your workflow. For more information, see automation templates in the actions/starter-workflows repository.

Adding your first workflow template

If you haven't already added a workflow to your repository, you'll see a list of workflow templates to choose from.

  1. 在 GitHub 上,导航到仓库的主页面。

  2. 在仓库名称下,单击 Actions(操作)

    主仓库导航中的操作选项卡

  3. 在您想要使用的模板名称下,单击 Set up this workflow(设置此工作流程)

    Node.js 模板建议

Adding additional workflow templates

If you already have a workflow and would like to add a new template workflow, you can navigate to the workflow templates.

  1. 在 GitHub 上,导航到仓库的主页面。

  2. 在仓库名称下,单击 Actions(操作)

    主仓库导航中的操作选项卡

  3. In the upper-left corner, click New workflow.

    Create a new workflow

  4. 在您想要使用的模板名称下,单击 Set up this workflow(设置此工作流程)

    Node.js 模板建议

问问别人

找不到要找的内容?

联系我们