-
-
Notifications
You must be signed in to change notification settings - Fork 41
35 lines (35 loc) · 1.09 KB
/
send-newsletter.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: send-newsletter
on:
push:
branches:
- master
jobs:
send-newsletter:
runs-on: ubuntu-latest
environment: newsletter
steps:
- uses: actions/checkout@v2
- run: ./.github/workflows/get_domain.sh
shell: bash
id: site-domain
- run: ./.github/workflows/commit-date.sh
shell: bash
id: commit-date
- name: Render newsletter
uses: ./.github/actions/render-newsletter
with:
posts_dir: "./_posts"
template_path: "./.github/workflows/newsletter_template.html"
sendgrid_list_id: "3ad415ef-d330-487b-94e2-7c60a34ae6f4"
sendgrid_api_key: ${{ secrets.SENDGRID_API_KEY }}
suppression_group_id: 17889
sendgrid_sender_id: 2072506
site_yaml: "./_config.yml"
subject_format: "[Code for Boston] %s"
slack_url: ${{ secrets.SLACK_URL }}
after_date: ${{ steps.commit-date.outputs.commit-date }}
send_at: "10:00-0500"
context: >-
{
"domain": "${{ steps.site-domain.outputs.domain }}"
}