Frecuentemente publicamos actualizaciones de nuestra documentación. Es posible que la traducción de esta página esté en curso. Para conocer la información más actual, visita la documentación en inglés. Si existe un problema con las traducciones en esta página, por favor infórmanos.

Publishing actions in GitHub Marketplace

You can publish actions in Mercado GitHub and share actions you've created with the GitHub community.

Acciones de GitHub is available with GitHub gratis, GitHub Pro, Equipo de GitHub, and Nube de GitHub Enterprise. Acciones de GitHub is unavailable for per-repository plans, which are legacy billing plans. For more information, see "GitHub's products."

En este artículo

You must accept the terms of service to publish actions in Mercado GitHub.

About publishing actions

Before you can publish an action, you'll need to create an action in your repository. For more information, see "Building actions."

When you plan to publish your action to Mercado GitHub, you'll need ensure that the repository only includes the metadata file, code, and files necessary for the action. Creating a single repository for the action allows you tag, release, and package the code in a single unit. GitHub also uses the action's metadata on your Mercado GitHub page.

Actions are published to Mercado GitHub immediately and aren't reviewed by GitHub as long as they meet these requirements:

  • The action must be in a public repository.
  • Each repository must contain a single action.
  • The action.yml metadata file must be in the root directory of the repository.
  • The name in the action's metadata file must be unique.

    • The name cannot match an existing action name published on Mercado GitHub.
    • The name cannot match a user or organization on GitHub, unless the user or organization owner is publishing the action. For example, only the GitHub organization can publish an action named github.
    • The name cannot match an existing Mercado GitHub category.
    • GitHub reserves the names of GitHub features.

Publishing an action

You can add the action you've created to Mercado GitHub by tagging it as a new release and publishing it.

To draft a new release and publish the action to Mercado GitHub, follow these instructions:

  1. En GitHub, visita la página principal del repositorio.

  2. When a repository contains an action.yml metadata file, you'll see a banner to publish the action to Mercado GitHub. Click Draft a release.

    Publish this action to markeplace button

  3. Select Publish this action to the Mercado GitHub. If you can't select the Publish this action to the Mercado GitHub checkbox, you'll need to read and accept the Mercado GitHub agreement first.

    Select publish to Marketplace

  4. If the labels in your metadata file contain any problems, you will see an error message.

    See notification

  5. If you see any on-screen suggestions, address them by updating your metadata file. Once complete, you will see an "Everything looks good!" message.

    Fix errors

  6. Choose a "Primary Category" and, optionally, "Another Category" which will help people find your action in Mercado GitHub.

    Choose category

  7. Tag your Action with a version, and add a release title. This helps people know what changes or features the release includes. People will see the version in the action's dedicated Mercado GitHub page.

    Tag a version

  8. Complete all other fields and click Publish release. Publishing requires you to use two-factor authentication. Para obtener más información, consulta "Configurar autenticación de dos factores".

    Publish the release

Removing an action from Mercado GitHub

To remove a published action from Mercado GitHub, you'll need to update each published release. Perform the following steps for each release of the action you've published to Mercado GitHub.

  1. En GitHub, visita la página principal del repositorio.

  2. Under your repository name, click Releases.

    Releases tab

  3. En la página Lanzamientos, a la derecha del lanzamiento que deseas editar, haz clic en Editar.

    Botón Editar lanzamiento

  4. Select Publish this action to the Mercado GitHub to remove the check from the box.

    Publish this action button

  5. Click Update release at the bottom of the page.

    Update release button

Pregunta a una persona

¿No puedes encontrar lo que estás buscando?

Contáctanos