Bump actions/checkout from 3 to 4 #20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build assets | |
on: | |
push: | |
paths: | |
- '.github/workflows/assets.yml' | |
- 'public/**' | |
- 'ui/**' | |
- 'package.json' | |
- 'pnpm-lock.yaml' | |
pull_request: | |
paths: | |
- '.github/workflows/assets.yml' | |
- 'public/**' | |
- 'ui/**' | |
- 'package.json' | |
- 'pnpm-lock.yaml' | |
jobs: | |
assets: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: '7.18.2' | |
- run: git submodule absorbgitdirs | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '19' | |
cache: pnpm | |
- run: pnpm install | |
- 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: pnpm link "$GITHUB_WORKSPACE/ab" | |
if: steps.ab.outcome == 'success' | |
- run: ./ui/build --no-install -p | |
- run: cd ui && pnpm run test && cd - | |
- run: mkdir assets && mv public assets/ && cp LICENSE COPYING.md README.md assets/ && git log -n 1 --pretty=oneline > assets/commit.txt | |
- run: cd assets && tar -cvpJf ../assets.tar.xz . && cd - | |
env: | |
XZ_OPT: '-0' | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: lila-assets | |
path: assets.tar.xz |