GitHub Marketplace: Social Preview for Your GitHub Actions
When sharing a GitHub Action on social media, the default preview image might prominently display your GitHub profile picture, as seen with the “Update Issue Body” action on the GitHub Marketplace. To make a more informative and visually appealing preview, you can add a custom social preview image to your GitHub repository. This custom image enhances the appearance of social media posts and is also used when sharing links to your GitHub Action on the Marketplace.
Creating a custom social preview image is straightforward and guided by GitHub’s documentation. The recommended size is 1280x640 pixels for optimal display on high-resolution devices. GitHub provides a template with safe zones to use as a starting point. After designing and uploading the image, tools like opengraph.xyz can verify its appearance across social media platforms. For a ready-made solution, a reusable Figma template named “GitHub Actions and Repo Social Previews” simplifies the creation of custom images.