generated from ludeeus/integration_blueprint
-
-
Notifications
You must be signed in to change notification settings - Fork 98
34 lines (30 loc) · 1.02 KB
/
json_library_upload.yml
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
name: JSON Library Upload
on:
workflow_dispatch:
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@v4
- 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: ./custom_components/battery_notes/data/
destination-dir: ./
- name: Cloudflare Purge Cache
uses: jakejarvis/[email protected]
env:
CLOUDFLARE_ZONE: ${{ secrets.CLOUDFLARE_ZONE }}
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}
PURGE_URLS: '["https://battery-notes-data.codechimp.org/library.json"]'