-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (54 loc) · 1.46 KB
/
build.yaml
File metadata and controls
58 lines (54 loc) · 1.46 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
53
54
55
56
57
58
---
name: Build
run-name: Build triggered by @${{ github.actor }}
on:
pull_request:
paths:
- 'src/**'
- 'static/**'
- 'bun.lock'
- 'package.json'
- 'tsconfig.json'
- 'svelte.config.js'
- 'vite.config.js'
- 'jsconfig.json'
branches:
- main
types: ['opened', 'synchronize', 'reopened']
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Allow only one concurrent build,
# skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want
# to allow these production deployments to complete.
concurrency:
group: 'build'
cancel-in-progress: false
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Bun
uses: oven-sh/setup-bun@v2
- name: Cache Bun
uses: actions/cache@v4
with:
path: ~/.bun/install/cache
key: linux-bun-${{ hashFiles('**/bun.lock') }}
restore-keys: |
linux-bun-${{ hashFiles('**/bun.lock') }}
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Create Website
run: bun run build
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'build'