Skip to content

Commit ffee5f5

Browse files
committed
fix: 直接上传产物
1 parent c4f692e commit ffee5f5

File tree

87 files changed

+1291
-15
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+1291
-15
lines changed

.github/workflows/main.yml

-12
Original file line numberDiff line numberDiff line change
@@ -36,22 +36,10 @@ jobs:
3636
with:
3737
submodules: true
3838

39-
- name: Set Node
40-
uses: actions/setup-node@v3
41-
with:
42-
node-version: '16'
43-
4439
- name: Setup tmate session
4540
uses: mxschmitt/action-tmate@v3
4641
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
4742

48-
- name: Node build
49-
run: |
50-
cd web/omsUI
51-
npm install pnpm
52-
node_modules/.bin/pnpm install
53-
pnpm run build
54-
5543
- name: Make all
5644
run: |
5745
make all

internal/web/controllers/page.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"strconv"
1313
)
1414

15-
const IndexPage = "omsUI/dist/index.html"
15+
const IndexPage = "dist/index.html"
1616

1717
func (s *Service) GetIndexPage(c *gin.Context) {
1818
bytes, err := web.EmbeddedFiles.ReadFile(IndexPage)

internal/web/router.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ func InitRouter(s *controllers.Service) *controllers.Service {
140140

141141
static := &web.ServeFileSystem{
142142
E: web.EmbeddedFiles,
143-
Path: "omsUI/dist/assets",
143+
Path: "dist/assets",
144144
}
145145

146146
r.Use(staticF.Serve("/assets", static))

web/dist/assets/Add-XMANssNT.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/dist/assets/Box-C_Unawo1.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/dist/assets/Button-P3xriBeC.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)