This commit is contained in:
Egor 2026-01-18 02:05:34 -08:00
parent 7a62036fc1
commit b776453619
3 changed files with 7 additions and 22 deletions

View file

@ -2,12 +2,12 @@ name: Android CI
on:
push:
branches: [main, master]
branches: [master]
paths:
- 'android/**'
- '.github/workflows/android-ci.yml'
pull_request:
branches: [main, master]
branches: [master]
paths:
- 'android/**'
- '.github/workflows/android-ci.yml'

View file

@ -2,12 +2,12 @@ name: CI
on:
push:
branches: [main, master]
branches: [master]
paths-ignore:
- 'android/**'
- '.github/workflows/android-ci.yml'
pull_request:
branches: [main, master]
branches: [master]
paths-ignore:
- 'android/**'
- '.github/workflows/android-ci.yml'
@ -21,10 +21,10 @@ jobs:
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.3.5
bun-version: 1.3.6
- name: Install dependencies
run: bun install
run: bun install && cd server && bun install
- name: Lint and type check
run: bun run check
@ -32,6 +32,3 @@ jobs:
- name: Build server
run: cd server && bun run build
- name: Build proton-bridge
run: cd proton-bridge && bun run build

View file

@ -1,19 +1,7 @@
import { $ } from 'bun';
const service = process.argv[2];
if (!service || !['server', 'bridge'].includes(service)) {
console.error('Usage: bun run docker:release <service>');
console.error('Example: bun run docker:release server');
console.error(' bun run docker:release bridge');
process.exit(1);
}
const registry = 'ghcr.io/lone-cloud';
const config =
service === 'server'
? { name: 'sup-server', path: './server' }
: { name: 'sup-proton-bridge', path: './proton-bridge' };
const config = { name: 'sup-server', path: './server' };
try {
const packageJson = await Bun.file(`${config.path}/package.json`).json();