mirror of
https://github.com/m1k1o/neko.git
synced 2026-11-03 08:21:50 -06:00
update workflows.
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
name: Build and Publish Client Artifacts
|
||||
|
||||
on:
|
||||
pull_request: # Change to push when ready to deploy
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- client/**
|
||||
- .github/workflows/client_build.yml
|
||||
|
||||
jobs:
|
||||
client_build:
|
||||
name: Build and Publish Client Artifacts
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 18
|
||||
cache: npm
|
||||
cache-dependency-path: client/package-lock.json
|
||||
|
||||
- name: Install dependencies
|
||||
working-directory: ./client
|
||||
run: npm ci
|
||||
|
||||
- name: Build client
|
||||
working-directory: ./client
|
||||
run: npm run build
|
||||
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: client
|
||||
path: client/dist
|
||||
Reference in New Issue
Block a user