-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (42 loc) · 1.05 KB
/
release.yaml
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
44
45
46
47
48
49
50
name: Create release
on:
push:
tags:
- "v*.*.*"
jobs:
create_release:
name: build / push
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js 22 (LTS)
uses: actions/setup-node@v4
with:
node-version: '22'
- name: Build the artifacts
working-directory: client
run: |
corepack enable
yarn install
yarn build
- name: Create web client artifacts
working-directory: client/dist
run: |
tar -czf ../../client-assets.tar.gz *
zip -r ../../client-assets.zip *
- name: Determine if prerelease
run: |
TAG="${GITHUB_REF##*/}"
if [[ "$TAG" == *-* ]]; then
echo "PRERELEASE=true" >> $GITHUB_ENV
else
echo "PRERELEASE=false" >> $GITHUB_ENV
fi
- name: Release
uses: softprops/action-gh-release@v2
with:
prerelease: ${{ env.PRERELEASE }}
files: |
client-assets.tar.gz
client-assets.zip