Update release.yml

Signed-off-by: Kevin Kandlbinder <kevin@kevink.dev>
This commit is contained in:
Kevin Kandlbinder 2022-09-06 00:27:20 +02:00 committed by GitHub
parent a78bb46124
commit 845aa3b6cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,6 +5,26 @@ on:
types: [published] types: [published]
jobs: jobs:
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
releases-matrix: releases-matrix:
name: Release Go Binary name: Release Go Binary
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -20,16 +40,11 @@ jobs:
goos: windows goos: windows
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- 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
- run: yarn path: webui/build
name: WebUI - Install Dependencies
working-directory: webui
- run: yarn build
name: WebUI - Build
working-directory: webui
- uses: wangyoucao577/go-release-action@v1.30 - uses: wangyoucao577/go-release-action@v1.30
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}