This action uses grantcodes/micropub
to post to your personal website.
Required The url of your micropub endpoint.
Required Your indieauth token - I highly recommend using a secret for this.
Required The post to create.
GitHub actions require inputs to be strings, so you must write the post as a json string or use the toJSON
function. But to make things easier you do not need to write valid mf2 json as the action tries to be intelligent and figure out if you are using a form encoded style object or json style object and fill in missing types.
The url of the created post.
uses: grantcodes/micropub-action@v1
with:
endpoint: "https://example.com/micropub"
token: ${{ secrets.MICROPUB_TOKEN }}
post: '{ "content": "Hello this is a basic note" }'
uses: grantcodes/micropub-action@v1
with:
endpoint: "https://example.com/micropub"
token: ${{ secrets.MICROPUB_TOKEN }}
post: |
{
"type": [ "h-entry" ],
"properties": {
"name": [ "Full Article" ],
"content": [ "This is a full in valid json representation" ],
"category": ["foo", "bar"]
}
}