mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
44 lines
870 B
YAML
44 lines
870 B
YAML
name: CI Build Bot
|
|
|
|
on: push
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Use node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 18
|
|
cache: 'npm'
|
|
|
|
- name: Install Yarn
|
|
run: npm install --location=global yarn
|
|
|
|
- name: Use node_modules cache
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: '**/node_modules'
|
|
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
|
|
|
|
- name: Install dependencies
|
|
run: yarn
|
|
|
|
- name: Build
|
|
run: yarn build:bot
|
|
|
|
- name: Archive build
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: bot
|
|
path: dist/bot
|