Skip to content

Commit d4ace88

Browse files
authored
feat: add deploy workflow (#543)
### Summary Currently, we only deploy the site on pushes to `master`. This works fine expect in the cases where we might was to schedule a post with a future publish date. This is scheduled for 10am ET every weekday. ### Test Plan - Manually triggered the workflow with `gh workflow run deploy.yml --ref gminn/add-daily-deployment`, confirmed it ran successfully ([result](https://github.com/memfault/interrupt/actions/runs/12739793493)) - Confirmed site was deployed properly 🎉 ![CleanShot 2025-01-12 at 21 58 41@2x](https://github.com/user-attachments/assets/9b045500-0853-4bf1-9a18-5404ac1a5d98)
1 parent f96e826 commit d4ace88

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Site Deployment
2+
3+
on:
4+
schedule:
5+
# At 2:00pm UTC (10:00am ET) on Monday through Friday
6+
# https://cron.help/#0_14_*_*_1-5
7+
- cron: "0 14 * * 1-5"
8+
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
run_name:
12+
description: "Name of the run, used to distinguish it from others"
13+
required: false
14+
type: string
15+
default: ""
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Deploy hook request
22+
run: curl -X POST ${{ secrets.CLOUDFLARE_DEPLOY_HOOK }}

0 commit comments

Comments
 (0)