Yaml 如何将默认工作流(github操作)发布到git hub marketplace?

Yaml 如何将默认工作流(github操作)发布到git hub marketplace?,yaml,github-actions,marketplace,Yaml,Github Actions,Marketplace,我有一个GitHub操作,它包含一些npm和gulp命令,最后运行一个Powershell文件。我想在市场上发布此GitHub操作,以便我的团队可以使用它。我在任何地方都找不到解决这个问题的办法。我查看了发布Github操作文档,没有相关文档 如何从外部调用此操作 例如,如何转换此简单操作,以便将其发布到市场 yml代码示例 # This is a basic workflow to help you get started with Actions name: CI on: push:

我有一个GitHub操作,它包含一些npm和gulp命令,最后运行一个Powershell文件。我想在市场上发布此GitHub操作,以便我的团队可以使用它。我在任何地方都找不到解决这个问题的办法。我查看了发布Github操作文档,没有相关文档

如何从外部调用此操作

例如,如何转换此简单操作,以便将其发布到市场

yml代码示例

# This is a basic workflow to help you get started with Actions

name: CI

on:
  push:
    branches: [ master ]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
  # This workflow contains a single job called "build"
  build:
    # The type of runner that the job will run on
    runs-on: windows-latest

    # Steps represent a sequence of tasks that will be executed as part of the job
    steps:
      - uses: actions/checkout@v2
      - name: Use Node.js
        uses: actions/setup-node@v1
        with:
          node-version: '10.x'
      - name: Install dependencies
        run: |
          npm install

谢谢

您在此处发布的yaml是一个工作流,而不是一个操作。动作是
uses:actions之类的东西背后的代码/checkout@v2
(通常是JavaScript,也可以停靠)。如果您只是在编写YAML,那么您只是在编写一个调用操作的工作流

如果你想做出自己的行动,请查看