Skip to content

Commit eb6fd83

Browse files
authored
Merge pull request #21 from AgentWorkforce/feature/buttondown-newsletter
Add Buttondown newsletter integration
2 parents f22e7ff + e68aae1 commit eb6fd83

19 files changed

Lines changed: 1175 additions & 26 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,25 @@ jobs:
3131
- name: Build static site
3232
run: npm run build
3333

34+
- name: Sync secrets to Cloudflare Pages
35+
if: ${{ env.BUTTONDOWN_API_KEY != '' }}
36+
env:
37+
BUTTONDOWN_API_KEY: ${{ secrets.BUTTONDOWN_API_KEY }}
38+
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
39+
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
40+
run: echo "$BUTTONDOWN_API_KEY" | npx wrangler pages secret put BUTTONDOWN_API_KEY --project-name=proactive-agents
41+
3442
- name: Publish to Cloudflare Pages
3543
uses: cloudflare/wrangler-action@v3
3644
with:
3745
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
3846
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
3947
wranglerVersion: "4"
4048
command: pages deploy ./out --project-name=proactive-agents --branch=${{ github.ref_name }}
49+
50+
- name: Upsert relaycron schedules
51+
if: ${{ env.RELAYCRON_API_KEY != '' }}
52+
env:
53+
RELAYCRON_API_KEY: ${{ secrets.RELAYCRON_API_KEY }}
54+
CRON_WEBHOOK_SECRET: ${{ secrets.CRON_WEBHOOK_SECRET }}
55+
run: npx tsx scripts/register-schedules.ts

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
.env
23

34
# dependencies
45
/node_modules

0 commit comments

Comments
 (0)