-
Notifications
You must be signed in to change notification settings - Fork 72
43 lines (38 loc) · 1003 Bytes
/
builder.yml
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
42
43
name: build frontend
on:
push:
tags:
- "*"
branches:
- 'master'
jobs:
builder:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- uses: actions/cache@v4
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: install nodejs
uses: actions/setup-node@v4
with:
node-version: 20
- name: build FE
run: |
export NODE_OPTIONS=--openssl-legacy-provider
npm install -g yarn
yarn
yarn build
zip -r $(git rev-parse --short HEAD).zip build/
- name: Release frontend resources
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v2
with:
files: "*.zip"