Post to social media when we create a new blog post
When we create a blog post with standard.site: - Post on Bluesky - Bridge to Mastodon (with fed.brid.gy, not part of this automation for now) - Save the blog post as a card on Semble and add it to a collection that people can follow - Post in a Discord channel using Webhooks
site.standard.document- Lexicon
site.standard.document- Operations
- Record created
Steps (13)
publicationRkey- Value
- Hidden
- Note
- rkey for the target publication
collectionRkey- Value
- Hidden
- Note
- rkey for the Semble collection
extraHashtags- Value
- Hidden
- Note
- Extra hashtags for the Bluesky & Mastodon posts
collectionUri- Value
at://{{self}}/network.cosmik.collection/{{collectionRkey}}- Note
- Semble collection URI
publicationUri- Value
at://{{self}}/site.standard.publication/{{publicationRkey}}- Note
- Target publication URI
- Continue only if
event.didequals{{self}} - and
event.commit.record.siteequals{{publicationUri}}- Only activate for the target publication (blog), not any other documents
publication- Lookup
{{publicationUri}}
collection- Lookup
{{collectionUri}}
- Continue only if
publication.foundequalstrue - and
collection.foundequalstrue
pageUrl- Value
{{publication.record.url}}/{{event.commit.record.path}}- Note
- URL of the published document
Save on SembleAction 1card
- Page URL
{{pageUrl}}
Create a recordAction 2
- Target Collection
network.cosmik.collectionLink- Record Template
{ "card": { "cid": "{{card.cid}}", "uri": "{{card.uri}}" }, "addedAt": "{{now}}", "addedBy": "{{self}}", "createdAt": "{{now}}", "collection": { "cid": "{{collection.cid}}", "uri": "{{collection.uri}}" } }
Post to BlueskyAction 3
- Text Template
{{event.commit.record.description}} View the full blog post at {{pageUrl}} {{extraHashtags}}- Embed URL
{{pageUrl}}