forked from dicebear/dicebear
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (44 loc) · 1.45 KB
/
deploy-website.yml
File metadata and controls
52 lines (44 loc) · 1.45 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
50
51
52
name: Deploy Website
on:
workflow_dispatch: {}
permissions:
contents: read
jobs:
test:
uses: dicebear/dicebear/.github/workflows/test.yml@9.x
deploy:
needs: test
environment: website
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 24
cache: npm
- name: Install dependencies
run: npm ci
- name: Download legal pages
env:
PAT: ${{ secrets.PAT }}
run: ./apps/docs/scripts/download-legal-pages.sh
- name: Build with VitePress
env:
VITE_PRIVACY_POLICY_URL: ${{ vars.VITE_PRIVACY_POLICY_URL }}
VITE_COOKIE_POLICY_URL: ${{ vars.VITE_COOKIE_POLICY_URL }}
VITE_SITE_NOTICE_URL: ${{ vars.VITE_SITE_NOTICE_URL }}
run: npx turbo run build --filter='@dicebear/docs...'
- name: Deploy to Bunny.net
uses: ayeressian/bunnycdn-storage-deploy@d4f074248f3d52f0b019bf79a8537030cbd54864 # v2.4.3
with:
source: 'apps/docs/.vitepress/dist'
destination: ''
storageZoneName: '${{ secrets.WEBSITE_STORAGE_NAME }}'
storagePassword: '${{ secrets.WEBSITE_STORAGE_PASSWORD }}'
accessKey: '${{ secrets.CDN_ACCESS_KEY }}'
pullZoneId: '${{ secrets.WEBSITE_PULL_ZONE_ID }}'
upload: 'true'
remove: 'true'
purgePullZone: 'true'