mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-25 07:00:48 +09:00
fix(memoh): CI asset embedding
This commit is contained in:
@@ -164,6 +164,7 @@ jobs:
|
||||
ghcr.io/${{ github.repository_owner }}/${{ matrix.image }}
|
||||
tags: |
|
||||
type=raw,value=dev,enable=${{ github.ref == 'refs/heads/main' }}
|
||||
type=raw,value=${{ github.ref_name }}-dev,enable=${{ startsWith(github.ref, 'refs/heads/v') }}
|
||||
type=raw,value=latest,enable=${{ github.event_name == 'release' || (startsWith(github.ref, 'refs/tags/') && !contains(github.ref_name, '-')) }}
|
||||
type=ref,event=pr
|
||||
type=semver,pattern={{version}}
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
*
|
||||
!.gitignore
|
||||
@@ -8,10 +8,7 @@ import (
|
||||
"runtime"
|
||||
)
|
||||
|
||||
// Include underscore/dot-prefixed files from bundled build output (e.g. Vite helper chunks).
|
||||
// Keep the explicit _plugin pattern to ensure helper chunks are embedded for production SPA routing.
|
||||
//
|
||||
//go:embed all:web all:web/assets/* all:web/assets/_plugin-vue_export-helper-*.js all:web/channels/* all:agent all:bun
|
||||
//go:embed all:web all:agent all:bun
|
||||
var assetsFS embed.FS
|
||||
|
||||
func AssetsFS() fs.FS {
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
*
|
||||
!.gitignore
|
||||
Reference in New Issue
Block a user