mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 10:02:59 +08:00
21 lines
560 B
YAML
21 lines
560 B
YAML
name: Dev
|
|
on:
|
|
push:
|
|
jobs:
|
|
build_docker:
|
|
name: Build Docker image
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install dependencies
|
|
run: npm i
|
|
- name: Run the TypeScript build
|
|
run: npx tsc
|
|
- name: Create server-package.json
|
|
run: cat package.json | grep -v electron > server-package.json
|
|
- uses: docker/setup-buildx-action@v3
|
|
- uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
cache-from: type=gha
|
|
cache-to: type=gha,mode=max |