Browse Source

fix(ci): Use prerelease to trigger release

nameczz 4 years ago
parent
commit
1c332a2e25
3 changed files with 6 additions and 5 deletions
  1. 3 3
      .github/workflows/pre.yml
  2. 2 1
      .github/workflows/release.yml
  3. 1 1
      server/src/app.module.ts

+ 3 - 3
.github/workflows/merge.yml → .github/workflows/pre.yml

@@ -1,7 +1,7 @@
 on:
-  push:
-    branches:
-      - main
+  release:
+    types: [prereleased]
+    branches: [main]
 
 jobs:
   publish:

+ 2 - 1
.github/workflows/release.yml

@@ -1,6 +1,7 @@
 on:
   release:
-    types: [published]
+    types: [released]
+    branches: [main]
 
 jobs:
   publish:

+ 1 - 1
server/src/app.module.ts

@@ -17,7 +17,7 @@ import { SchemaModule } from './schema/schema.module';
   imports: [
     ServeStaticModule.forRoot({
       rootPath: join(__dirname, '..', 'build'),
-      renderPath: '/', // only root render static html
+      // renderPath: '/', // only root render static html
     }),
     MilvusModule,
     CollectionsModule,