Skip to content

Automate social card generation for new posts#542

Open
tripledoublev wants to merge 4 commits into
stagingfrom
chore/auto-social-cards-for-new-posts
Open

Automate social card generation for new posts#542
tripledoublev wants to merge 4 commits into
stagingfrom
chore/auto-social-cards-for-new-posts

Conversation

@tripledoublev

@tripledoublev tripledoublev commented Feb 27, 2026

Copy link
Copy Markdown
Contributor

Automates social card generation in CI when a new file is added in the posts directory.

  • Detects newly added markdown files under _posts on push
  • Generates social cards for those posts only
  • Writes images to assets/images/social/dripline
  • Upserts image frontmatter in each new post
  • Commits updated post plus generated image back to the branch

@netlify

netlify Bot commented Feb 27, 2026

Copy link
Copy Markdown

Deploy Preview for hyphacoop ready!

Name Link
🔨 Latest commit bf1cdcb
🔍 Latest deploy log https://app.netlify.com/projects/hyphacoop/deploys/69a0efef9b933e0008b02d8c
😎 Deploy Preview https://deploy-preview-542--hyphacoop.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

- Use ImageMagick caption: for robust word wrapping and dynamic font scaling

- Enhance filename space handling in git diff deploy workflow
- Add continue-on-error to GH Actions steps to prevent blocking production deploys

- Ensure image rendering failures skip to next post instead of crashing script

- Use git log origin/master..CURRENT_SHA for robust new-branch push diffing
- Guard render_text_image and its internal IM calls to avoid set -e aborts

- Robustly derive baseline branch for EMPTY_SHA new-branch diffs using github.event.base_ref

- Filter empty lines from git log --name-only output
@netlify

netlify Bot commented Jun 30, 2026

Copy link
Copy Markdown

Deploy Preview for hyphacoop ready!

Name Link
🔨 Latest commit 6d1884f
🔍 Latest deploy log https://app.netlify.com/projects/hyphacoop/deploys/6a442ac84a84ff0008cd1b27
😎 Deploy Preview https://deploy-preview-542--hyphacoop.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant