-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (36 loc) · 886 Bytes
/
build.yml
File metadata and controls
41 lines (36 loc) · 886 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
37
38
39
40
41
name: build
on:
- push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout repo
uses: actions/checkout@v4
- run: make image
test:
runs-on: ubuntu-latest
env:
METABLOCK_API_TOKEN: ${{ secrets.METABLOCK_API_TOKEN }}
METABLOCK_BLOCK_ID: 85ef26bff9f0454aa6ff0516b6d52420
steps:
- name: checkout repo
uses: actions/checkout@v6
- name: build example
uses: actions/setup-node@v6
with:
node-version: 22
- name: build example
run: make build-example
- name: stage deployment
uses: ./
if: github.ref != 'refs/heads/main'
with:
env: stage
bundle: example/dist
- name: prod deployment
uses: ./
if: github.ref == 'refs/heads/main'
with:
env: prod
bundle: example/dist