Skip to content

Commit e94eef8

Browse files
authored
Reviving r2 uploads, because it turns out we were using it (#1003)
1 parent 2fa3c85 commit e94eef8

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/deno.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,29 @@ jobs:
141141
name: jumble-artifacts
142142
path: ./toolshed/jumble-frontend
143143

144+
# NOTE(jake): We need to upload the frontend artifacts to R2, to enable
145+
# localhost:8000 toolshed proxying of jumble.
146+
- name: 📤 Upload frontend artifacts to R2 /jumble/latest
147+
uses: ryand56/r2-upload-action@v1.4
148+
if: github.ref == 'refs/heads/main'
149+
with:
150+
r2-account-id: ${{ secrets.R2_ACCOUNT_ID }}
151+
r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }}
152+
r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }}
153+
r2-bucket: ${{ secrets.R2_BUCKET }}
154+
source-dir: ./toolshed/jumble-frontend
155+
destination-dir: jumble/latest
156+
157+
- name: 📤 Upload backend artifacts to R2 /jumble/${{ github.sha }}
158+
uses: ryand56/r2-upload-action@v1.4
159+
with:
160+
r2-account-id: ${{ secrets.R2_ACCOUNT_ID }}
161+
r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }}
162+
r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }}
163+
r2-bucket: ${{ secrets.R2_BUCKET }}
164+
source-dir: ./toolshed/jumble-frontend
165+
destination-dir: jumble/${{ github.sha }}
166+
144167
- name: 🔐 Process & sign binaries
145168
if: github.ref == 'refs/heads/main'
146169
run: |

0 commit comments

Comments
 (0)