mirror of
https://github.com/Unkn0wnCat/matrix-veles.git
synced 2025-04-28 17:56:49 +02:00
Update go.yml
Signed-off-by: Kevin Kandlbinder <kevin@kevink.dev>
This commit is contained in:
parent
845aa3b6cd
commit
4a81941bfd
1 changed files with 28 additions and 14 deletions
40
.github/workflows/go.yml
vendored
40
.github/workflows/go.yml
vendored
|
@ -7,9 +7,30 @@ on:
|
|||
branches: [ main ]
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
build-webui:
|
||||
name: Build WebUI
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: "18.x"
|
||||
- run: yarn
|
||||
name: WebUI - Install Dependencies
|
||||
working-directory: webui
|
||||
- run: yarn build
|
||||
name: WebUI - Build
|
||||
working-directory: webui
|
||||
- name: WebUI - Upload artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: webui-dist
|
||||
path: webui/build
|
||||
|
||||
build-backend:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build-webui
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
|
@ -18,18 +39,11 @@ jobs:
|
|||
with:
|
||||
go-version: 1.17
|
||||
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v3
|
||||
- name: Download WebUI build
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
node-version: "18.x"
|
||||
|
||||
- run: yarn
|
||||
name: WebUI - Install Dependencies
|
||||
working-directory: webui
|
||||
|
||||
- run: yarn build
|
||||
name: WebUI - Build
|
||||
working-directory: webui
|
||||
name: webui-dist
|
||||
path: webui/build
|
||||
|
||||
- name: Build with WebUI
|
||||
run: go build -tags withUI -v ./...
|
||||
|
|
Loading…
Add table
Reference in a new issue