-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 746 Bytes
/
build.yml
File metadata and controls
36 lines (30 loc) · 746 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
30
31
32
33
34
35
36
name: 'Build'
on:
pull_request:
workflow_call:
push:
branches: ['main']
jobs:
build:
name: 'Build'
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@v3
- name: 'Install Dependencies'
uses: ./.github/actions/install-dependencies
- name: 'Setup Build Cache'
id: cache-build
uses: actions/cache@v3
with:
path: dist
key: ${{ github.sha }}-dist
- name: 'Run Build'
if: steps.cache-build.outputs.cache-hit != 'true'
run: pnpm build
- name: 'Upload Artifact'
if: always()
uses: actions/upload-artifact@v3
with:
name: ${{ github.sha }}-dist
path: dist