Skip to content

Commit 2294af8

Browse files
committed
fix assets building
1 parent db4fa35 commit 2294af8

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,17 @@ jobs:
2727
- name: Check out
2828
uses: actions/checkout@v3
2929

30+
- name: Install node and npm
31+
uses: actions/setup-node@v3
32+
with:
33+
node-version: 18
34+
35+
- name: Build assets
36+
run: |
37+
cd assets &&
38+
npm i &&
39+
npm run build
40+
3041
- name: Build and publish binaries
3142
uses: wangyoucao577/go-release-action@v1.34
3243
with:

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ ADD . /src
1111
RUN apk add build-base git npm
1212

1313
# Build
14-
RUN go build -o oxigen
1514
RUN (cd assets; npm i; npm run build)
15+
RUN go build -o oxigen
1616

1717
# -------------
1818
# runtime stage

0 commit comments

Comments
 (0)