-
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (44 loc) · 1.22 KB
/
Copy pathdeploy.yml
File metadata and controls
49 lines (44 loc) · 1.22 KB
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
39
40
41
42
43
44
45
46
47
48
49
name: Deploy to bunny.net
on:
push:
branches:
- main
paths:
- 'share/**'
- 'README.md'
- 'CHANGELOG.md'
- 'CREDITS.md'
- 'PRIVACY.md'
- 'site/**'
workflow_dispatch:
permissions:
contents: read
concurrency:
group: bunny-deploy
cancel-in-progress: false
jobs:
deploy-share:
uses: nichu42/shared-workflows/.github/workflows/deploy-bunny.yml@v3
with:
source_dir: share
cdn_domain: share.boxviewer.app
secrets:
S3_ENDPOINT: BUNNY_S3_ENDPOINT
S3_ACCESS_KEY: BUNNY_S3_ACCESS_KEY
S3_SECRET_KEY: BUNNY_S3_SECRET_KEY
S3_BUCKET: BUNNY_S3_BUCKET
BUNNY_API_KEY: BUNNY_API_KEY
deploy-site:
uses: nichu42/shared-workflows/.github/workflows/deploy-bunny.yml@v3
with:
source_dir: site/dist
build_command: python scripts/build_site.py
cdn_domain: boxviewer.app
cache_control: no-cache
purge_list: index.html changelog.html credits.html privacy.html styles.css
secrets:
S3_ENDPOINT: HOMEPAGE_BUNNY_S3_ENDPOINT
S3_ACCESS_KEY: HOMEPAGE_BUNNY_S3_ACCESS_KEY
S3_SECRET_KEY: HOMEPAGE_BUNNY_S3_SECRET_KEY
S3_BUCKET: HOMEPAGE_BUNNY_S3_BUCKET
BUNNY_API_KEY: HOMEPAGE_BUNNY_API_KEY