-
Notifications
You must be signed in to change notification settings - Fork 4
45 lines (38 loc) · 1010 Bytes
/
build-artifact.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
43
44
45
name: Build & Upload Artifact
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- uses: actions/cache@v4
with:
path: ~/.bun/install/cache
key: ${{ runner.os }}-${{ matrix.bun }}-bun-${{ hashFiles('**/bun.lockb') }}
restore-keys: |
${{ runner.os }}-${{ matrix.bun }}-bun-
- name: Install Dependencies
run: bun install
- name: Build Revenge
run: bun run build -- --minify
- name: Upload revenge.min.js
uses: actions/upload-artifact@v4
with:
name: revenge-min
path: ./dist/revenge.min.js
- name: Upload revenge.js
uses: actions/upload-artifact@v4
with:
name: revenge
path: ./dist/revenge.js