📧 An automated weekly PDF delivery system that sends customized PDF templates via email using GitHub Actions.
The system operates on the following automated workflow:
- 🤖 Runs automatically every Monday at 00:00 UTC
- 🎮 Can also be triggered manually through GitHub Actions
- 🔍 Locates the template PDF file in the repository
- ✏️ Renames it with the current week number and date (e.g., "Week01_2025-01-12.pdf")
- 🔒 Encodes the PDF for email attachment
- 📨 Sends the email using SendGrid
Required secrets in your repository settings:
TO_EMAIL
: 📮 Recipient email addressFROM_EMAIL
: 📤 Sender email addressSENDGRID_API_KEY
: 🔐 Your SendGrid API key
- 📁 Place your PDF template in the repository root
- ✨ Name it with "Template" in the filename
Need to send right away? No problem!
- 🖱️ Go to the Actions tab in your GitHub repository
- 📋 Select "Weekly Email" workflow
▶️ Click "Run workflow"
The workflow is defined in .github/workflows/WeeklySend.yml
and uses:
- 🔄 GitHub Actions for automation
- 📧 SendGrid API for email delivery
- 🔒 Base64 encoding for PDF attachment
- 🐧 Ubuntu latest as the runner
This project is licensed under the MIT License - see the LICENSE file for details.
Made with ❤️ using GitHub Actions