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 ]
|
branches: [ main ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
build-webui:
|
||||||
build:
|
name: Build WebUI
|
||||||
runs-on: ubuntu-latest
|
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:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
@ -18,18 +39,11 @@ jobs:
|
||||||
with:
|
with:
|
||||||
go-version: 1.17
|
go-version: 1.17
|
||||||
|
|
||||||
- name: Use Node.js
|
- name: Download WebUI build
|
||||||
uses: actions/setup-node@v3
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
node-version: "18.x"
|
name: webui-dist
|
||||||
|
path: webui/build
|
||||||
- run: yarn
|
|
||||||
name: WebUI - Install Dependencies
|
|
||||||
working-directory: webui
|
|
||||||
|
|
||||||
- run: yarn build
|
|
||||||
name: WebUI - Build
|
|
||||||
working-directory: webui
|
|
||||||
|
|
||||||
- name: Build with WebUI
|
- name: Build with WebUI
|
||||||
run: go build -tags withUI -v ./...
|
run: go build -tags withUI -v ./...
|
||||||
|
|
Loading…
Add table
Reference in a new issue