mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-21 22:50:42 +08:00
ci: bun run failed
This commit is contained in:
@@ -5,6 +5,7 @@ on:
|
||||
paths-ignore:
|
||||
- 'docs/**'
|
||||
- '**.md'
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
@@ -29,8 +30,10 @@ jobs:
|
||||
- uses: oven-sh/setup-bun@v2
|
||||
with:
|
||||
bun-version: latest
|
||||
- name: Bun Install
|
||||
run: cd web && bun install --frozen-lockfile
|
||||
- name: Build Web
|
||||
run: cd web && bun install --frozen-lockfile && bun build && bash copy-build.sh
|
||||
run: cd web && bun run build && bash copy-build.sh
|
||||
- name: Build with Gradle
|
||||
run: ./gradlew :boot:bootjar
|
||||
- name: Upload Jar
|
||||
@@ -43,6 +46,8 @@ jobs:
|
||||
needs: [ build ]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Download Jar
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
@@ -60,7 +65,7 @@ jobs:
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: boot/
|
||||
context: boot
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
tags: reajason/memshell-party:latest
|
||||
|
||||
@@ -10,7 +10,7 @@ import org.springframework.web.bind.annotation.GetMapping;
|
||||
@Controller
|
||||
public class ViewController {
|
||||
@GetMapping("/")
|
||||
public String index() {
|
||||
public String index(){
|
||||
return "index";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,6 +15,16 @@ public class GenerateRequest {
|
||||
private InjectorConfig injectorConfig;
|
||||
private Packer.INSTANCE packer;
|
||||
|
||||
@Data
|
||||
static class ShellToolConfigDTO {
|
||||
private String shellClassName;
|
||||
private String godzillaPass;
|
||||
private String godzillaKey;
|
||||
private String godzillaHeaderName;
|
||||
private String godzillaHeaderValue;
|
||||
private String commandParamName;
|
||||
}
|
||||
|
||||
public ShellToolConfig parseShellToolConfig() {
|
||||
if (shellConfig.getShellTool().equals(ShellTool.Godzilla)) {
|
||||
return GodzillaConfig.builder()
|
||||
@@ -33,14 +43,4 @@ public class GenerateRequest {
|
||||
}
|
||||
throw new UnsupportedOperationException("unknown shell tool " + shellConfig.getShellTool());
|
||||
}
|
||||
|
||||
@Data
|
||||
static class ShellToolConfigDTO {
|
||||
private String shellClassName;
|
||||
private String godzillaPass;
|
||||
private String godzillaKey;
|
||||
private String godzillaHeaderName;
|
||||
private String godzillaHeaderValue;
|
||||
private String commandParamName;
|
||||
}
|
||||
}
|
||||
+2
-1
@@ -5,4 +5,5 @@ mkdir -p ../boot/src/main/resources/static/assets/
|
||||
cp dist/vite.svg ../boot/src/main/resources/static/
|
||||
cp -R dist/assets/* ../boot/src/main/resources/static/assets/
|
||||
|
||||
cp dist/index.html ../boot/src/main/resources/templates
|
||||
mkdir -p ../boot/src/main/resources/templates
|
||||
cp dist/index.html ../boot/src/main/resources/templates/index.html
|
||||
+4
-1
@@ -52,5 +52,8 @@
|
||||
"tailwind-merge": "^2.5.5",
|
||||
"tailwindcss-animate": "^1.0.7",
|
||||
"zod": "^3.24.1"
|
||||
}
|
||||
},
|
||||
"trustedDependencies": [
|
||||
"@biomejs/biome"
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user