-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (33 loc) · 925 Bytes
/
deploy.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
35
36
37
38
39
40
41
42
name: Deploy when pushing on main
on:
push:
branches:
- "main"
permissions:
contents: read
id-token: write
jobs:
publish:
runs-on: ubuntu-latest
name: "Deploy site"
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Install dependencies
run: bun install
- name: Build site
run: bun run build
- name: Upload files
uses: djang0dev/[email protected]
with:
upload: true
remove: true
storageName: ${{ secrets.BUNNY_STORAGE_NAME }}
storagePassword: ${{ secrets.BUNNY_STORAGE_PASSWORD }}
destination: "tibs.gay/"
sourcePattern: "./dist/**/*.*"
apiKey: ${{ secrets.BUNNY_API_KEY }}
purgePullZone: true
pullZoneId: ${{ secrets.BUNNY_PULL_ZONE_ID }}