-
-
Notifications
You must be signed in to change notification settings - Fork 131
38 lines (34 loc) · 996 Bytes
/
Copy pathjson_library_upload.yaml
File metadata and controls
38 lines (34 loc) · 996 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
34
35
36
37
38
name: JSON Library Upload
on:
workflow_dispatch:
push:
branches:
- "main"
paths:
- "library/schema.json"
workflow_run:
workflows: ["JSON Library Sorter and Doc Gen"]
types:
- completed
jobs:
librarian:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Upload library to Cloudflare
uses: ryand56/r2-upload-action@latest
with:
r2-account-id: ${{ secrets.R2_ACCOUNT_ID }}
r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }}
r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }}
r2-bucket: ${{ secrets.R2_BUCKET }}
source-dir: ./library
destination-dir: ./
- name: Cloudflare Purge Cache
uses: nathanvaughn/actions-cloudflare-purge@v4.0.0
with:
cf_zone: ${{ secrets.CLOUDFLARE_ZONE }}
cf_auth: ${{ secrets.CLOUDFLARE_TOKEN }}