Commit 35832eb
authored
Separate S3 buckets for raw data and HTML exports (#41)
## Summary
Splits Cloudflare R2 bucket configuration into two distinct buckets for
better organization and access control:
- **CLOUDFLARE_R2_RAWDATA_BUCKET_NAME** (`sfs-json`): Stores source JSON
files from the API
- **CLOUDFLARE_R2_HTMLEXPORT_BUCKET_NAME** (`web`): Stores generated
HTML exports for public access
## Changes
- ✅ Updated `fetch-sfs-workflow.yml` to upload JSON to rawdata bucket
- ✅ Updated `html-export-workflow.yml` to download from rawdata and
upload HTML to export bucket
- ✅ Updated `github-pages-workflow.yml` to download JSON from rawdata
bucket
- ✅ Changed bucket names from secrets to repository variables for better
transparency
## Benefits
- Better organization with separate buckets for different data types
- Allows different retention policies and access controls per bucket
- More transparent configuration using variables instead of secrets for
non-sensitive data
## Required Setup
Before merging, add these two repository variables:
```bash
gh variable set CLOUDFLARE_R2_RAWDATA_BUCKET_NAME --body "sfs-json"
gh variable set CLOUDFLARE_R2_HTMLEXPORT_BUCKET_NAME --body "web"
```
Or via GitHub UI: Settings → Secrets and variables → Actions → Variables
tab
🤖 Generated with [Claude Code](https://claude.com/claude-code)1 parent 2124ad6 commit 35832eb
3 files changed
Lines changed: 9 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | 107 | | |
112 | 108 | | |
113 | 109 | | |
| |||
123 | 119 | | |
124 | 120 | | |
125 | 121 | | |
126 | | - | |
| 122 | + | |
127 | 123 | | |
128 | 124 | | |
129 | 125 | | |
| |||
135 | 131 | | |
136 | 132 | | |
137 | 133 | | |
138 | | - | |
| 134 | + | |
139 | 135 | | |
140 | 136 | | |
141 | 137 | | |
142 | | - | |
| 138 | + | |
143 | 139 | | |
144 | 140 | | |
145 | 141 | | |
| |||
149 | 145 | | |
150 | 146 | | |
151 | 147 | | |
152 | | - | |
| 148 | + | |
153 | 149 | | |
154 | | - | |
| 150 | + | |
155 | 151 | | |
0 commit comments