Workflows & Support/CI/CD & GitHub Actions
Docs/Workflows & Support/CI/CD & GitHub Actions
CI/CD & GitHub Actions
Automate OpenGraph card generation and release screenshot styling in GitHub Actions.
Integrate Imagerry CLI directly into your continuous integration workflows to automatically style release screenshots, social share cards, and documentation assets.
GitHub Actions Workflow
Create .github/workflows/process-assets.yml in your repository:
|yaml
name: Process Assets
on: [push]
jobs:
style-images:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install Imagerry CLI
run: npm install -g @imagerry/cli
- name: Generate Styled Screenshots
env:
IMAGERRY_LICENSE_KEY: ${{ secrets.IMAGERRY_LICENSE_KEY }}
run: |
imagerry -i ./raw/hero.png -o ./dist/hero-styled.png --preset meshWarning
Secret Hygiene
Always store your IMAGERRY_LICENSE_KEY as an encrypted GitHub Repository Secret or CI Environment variable. Never commit license keys directly into public git repositories.
Found an issue or typo? Report on GitHub
Imagerry CLI Docs • v0.2.0-beta