Skip to content

Commit

Permalink
fix: 直接上传产物
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbeatty committed Feb 21, 2024
1 parent c4f692e commit ffee5f5
Show file tree
Hide file tree
Showing 87 changed files with 1,291 additions and 15 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,10 @@ jobs:
with:
submodules: true

- name: Set Node
uses: actions/setup-node@v3
with:
node-version: '16'

- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}

- name: Node build
run: |
cd web/omsUI
npm install pnpm
node_modules/.bin/pnpm install
pnpm run build
- name: Make all
run: |
make all
Expand Down
2 changes: 1 addition & 1 deletion internal/web/controllers/page.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"strconv"
)

const IndexPage = "omsUI/dist/index.html"
const IndexPage = "dist/index.html"

func (s *Service) GetIndexPage(c *gin.Context) {
bytes, err := web.EmbeddedFiles.ReadFile(IndexPage)
Expand Down
2 changes: 1 addition & 1 deletion internal/web/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func InitRouter(s *controllers.Service) *controllers.Service {

static := &web.ServeFileSystem{
E: web.EmbeddedFiles,
Path: "omsUI/dist/assets",
Path: "dist/assets",
}

r.Use(staticF.Serve("/assets", static))
Expand Down
1 change: 1 addition & 0 deletions web/dist/assets/Add-XMANssNT.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions web/dist/assets/Box-C_Unawo1.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions web/dist/assets/Button-P3xriBeC.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ffee5f5

Please sign in to comment.