mirror of
https://git.unlock-music.dev/um/web.git
synced 2025-05-10 00:03:26 +00:00
ci: add build pipeline
This commit is contained in:
parent
80d79d0f65
commit
bf96544a51
48
.gitea/workflows/build.yml
Normal file
48
.gitea/workflows/build.yml
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
name: Build
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- "src/**/*"
|
||||||
|
- "package.json"
|
||||||
|
- "package-lock.json"
|
||||||
|
pull_request:
|
||||||
|
branches: [ main ]
|
||||||
|
types: [ opened, synchronize, reopened ]
|
||||||
|
paths:
|
||||||
|
- "src/**/*"
|
||||||
|
- "package.json"
|
||||||
|
- "package-lock.json"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout codebase
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up node
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version-file: .nvmrc
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
run: npm test
|
||||||
|
|
||||||
|
- name: Build legacy
|
||||||
|
run: ./scripts/build-and-package.sh legacy
|
||||||
|
|
||||||
|
- name: Build extension
|
||||||
|
run: ./scripts/build-and-package.sh extension
|
||||||
|
|
||||||
|
- name: Build modern
|
||||||
|
run: ./scripts/build-and-package.sh modern
|
||||||
|
|
||||||
|
- name: Publish artifact
|
||||||
|
uses: christopherhx/gitea-upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: um-web-all
|
||||||
|
path: *.zip
|
Loading…
x
Reference in New Issue
Block a user