-
-
Notifications
You must be signed in to change notification settings - Fork 5
29 lines (27 loc) · 947 Bytes
/
build-preview.yml
File metadata and controls
29 lines (27 loc) · 947 Bytes
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
name: "Build Preview Deployment"
on:
pull_request:
types: [opened, synchronize]
jobs:
build-preview:
runs-on: "ubuntu-latest"
name: "Build Preview Site and Upload Build Artifact"
steps:
- name: "checkout"
uses: "actions/checkout@v6"
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- uses: oven-sh/setup-bun@v2
- run: bun install
- run: cd web && bun run build
- name: "upload build artifact"
uses: "actions/upload-artifact@v6"
with:
name: "preview-build"
path: |
node_modules
web/.svelte-kit
web/node_modules
include-hidden-files: true