mirror of
https://github.com/lone-cloud/prism
synced 2026-06-03 19:54:44 -07:00
fix ci
This commit is contained in:
parent
7a62036fc1
commit
b776453619
3 changed files with 7 additions and 22 deletions
4
.github/workflows/android-ci.yml
vendored
4
.github/workflows/android-ci.yml
vendored
|
|
@ -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'
|
||||
|
|
|
|||
11
.github/workflows/ci.yml
vendored
11
.github/workflows/ci.yml
vendored
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue