An easy way to make banners from articles that you make with only 1 step!
on: workflow_dispatch
jobs:
create_banner_image:
name: "Create Banner Image"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- uses: darkterminal/create-banner-image@master # Uses an action in the root directory
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
canonical-name: 'create-banner-image-from-grithub-action'
gradient-colors: '#fc00ff,#00dbde'
article-name: 'Create Banner Image From Github Action'
article-category: 'open-source'
emoji: '🎉'
- endpoint:
/generator
- method:
POST
- fields:
canonicalName
slug stringarticleName
article name / titlegradientColors
array of stringsarticleCategory
article categoryemoji
string
Example
curl -X POST \
'https://<base-url>/generator' \
--header 'Accept: */*' \
--header 'Content-Type: application/json' \
--data-raw '{
"canonicalName": "metaphor-website-live",
"articleName": "Metaphor Website Live",
"gradientColors": ["#fc00ff","#00dbde"],
"articleCategory": "open-sorce",
"emoji": "🎉"
}'
- endpoint:
/classic-seo-banner
- method:
GET
- query:
articleName
article name / titleauthor
The author namelanguage
Type of programming language
- endpoint:
/seo-banner
- method:
GET
- query:
title
article name / titleauthor
The author namelogo
web logo URLhead
default "Metaphor Story"writer
writer github username