forked from destinygg/kickstiny
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (26 loc) · 831 Bytes
/
Copy pathdeploy.yml
File metadata and controls
33 lines (26 loc) · 831 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Deploy to R2
on:
workflow_dispatch:
jobs:
deploy:
name: Build and Deploy to R2
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Run production build
run: npm run build
- name: Deploy to Cloudflare R2
run: |
aws s3 cp ./kickstiny.user.js s3://r2cdn-prod/kickstiny/kickstiny.user.js --endpoint-url https://883bb318ad59e2211a4acb9610074d91.r2.cloudflarestorage.com
env:
AWS_ACCESS_KEY_ID: ${{ secrets.CF_R2_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.CF_R2_SECRET_KEY }}
AWS_REGION: auto