Skip to content

CI/CD Integration

Automate social media posts directly from your CI/CD pipeline.

  1. Create an API key in Settings
  2. Add it as a secret (AP_API_KEY) in your CI system
  3. Use the GitHub Action or raw CLI
- uses: agendapanda/post-action@v1
with:
api-key: ${{ secrets.AP_API_KEY }}
content: "We just shipped v2.0!"
Terminal window
npm install -g @agendapanda/cli
AP_API_KEY=$AP_API_KEY ap post "Deployed to production"

Keep a calendar.json in your repo and sync on every push:

- uses: agendapanda/post-action@v1
with:
api-key: ${{ secrets.AP_API_KEY }}
calendar-file: "./calendar.json"

See the Calendar as Code guide for the JSON format.