Skip to content

Deploy to bunny.net

Deploy to bunny.net #6

Workflow file for this run

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@v2
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@v2
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