Skip to content

use existing clockToSpeed function #129

use existing clockToSpeed function

use existing clockToSpeed function #129

Workflow file for this run

name: Build assets
env:
ACTIONS_STEP_DEBUG: true
on:
push:
paths:
- '.github/workflows/assets.yml'
- 'public/**'
- 'ui/**'
- 'package.json'
- 'pnpm-lock.yaml'
- 'bin/download-lifat'
pull_request:
paths:
- '.github/workflows/assets.yml'
- 'public/**'
- 'ui/**'
- 'package.json'
- 'pnpm-lock.yaml'
- 'bin/download-lifat'
jobs:
assets:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-node@v4
with:
node-version: 22
- uses: pnpm/action-setup@v4
with:
run_install: true
- uses: actions/checkout@v4
with:
repository: lichess-org/ab
ssh-key: ${{ secrets.id_rsa_ab }}
ref: master
path: ab
continue-on-error: true
id: ab
- run: node -v && pnpm -v && pnpm tsc -v
- run: pnpm link "$GITHUB_WORKSPACE/ab"
if: steps.ab.outcome == 'success'
- run: ./ui/build --no-install -p
- run: pnpm test
working-directory: ui
- run: mkdir assets && mv public assets/ && cp -p bin/download-lifat LICENSE COPYING.md README.md assets/ && git log -n 1 --pretty=oneline > assets/commit.txt
- run: cd assets && tar --zstd -cvpf ../assets.tar.zst . && cd -
- uses: actions/upload-artifact@v4
with:
name: lila-assets
path: assets.tar.zst
compression-level: 0 # already compressed