Commit 5187c41
fix(ci): use R2_ACCOUNT_ID to construct endpoint dynamically (#467)
Fixed SSL handshake failure in deploy-rules workflow by adopting the
same R2 configuration pattern used in stdlib-r2-upload workflow.
Changes:
- deploy-rules.yml: Use R2_ACCOUNT_ID secret instead of R2_ENDPOINT
- Construct endpoint dynamically: https://${R2_ACCOUNT_ID}.r2.cloudflarestorage.com
- upload_rules_to_r2.sh: Accept R2_ACCOUNT_ID and validate format
- Remove placeholder "your-account-id" that caused SSL errors
- Add workflow_dispatch trigger for manual deployment runs
- Remove sensitive information from script output (account ID, endpoints, paths)
This reuses the existing R2_ACCOUNT_ID secret already configured for
stdlib uploads, ensuring consistency across workflows.
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 69d8bb4 commit 5187c41
File tree
2 files changed
+39
-8
lines changed- .github/workflows
- tools
2 files changed
+39
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
3 | 10 | | |
4 | 11 | | |
5 | 12 | | |
| |||
10 | 17 | | |
11 | 18 | | |
12 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
13 | 28 | | |
14 | 29 | | |
15 | 30 | | |
| |||
36 | 51 | | |
37 | 52 | | |
38 | 53 | | |
| 54 | + | |
39 | 55 | | |
40 | 56 | | |
41 | | - | |
42 | 57 | | |
| 58 | + | |
| 59 | + | |
43 | 60 | | |
44 | 61 | | |
45 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
41 | 45 | | |
42 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
43 | 58 | | |
44 | 59 | | |
45 | 60 | | |
| |||
57 | 72 | | |
58 | 73 | | |
59 | 74 | | |
60 | | - | |
61 | | - | |
| 75 | + | |
| 76 | + | |
62 | 77 | | |
63 | 78 | | |
64 | 79 | | |
| |||
148 | 163 | | |
149 | 164 | | |
150 | 165 | | |
151 | | - | |
152 | 166 | | |
153 | 167 | | |
154 | 168 | | |
| |||
0 commit comments