Skip to content

Commit 32c2121

Browse files
committed
Add mini-coi script injection to static.yml build process
1 parent 8257299 commit 32c2121

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/static.yml

+2
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ jobs:
4848
bun i
4949
cd page
5050
bun run build
51+
bunx mini-coi -sw dist/mini-coi.js
52+
sed -i '/<head>/a \ <script src="./mini-coi.js" scope="./"></script>' dist/index.html
5153
- name: Upload artifact
5254
uses: actions/upload-pages-artifact@v3
5355
with:

0 commit comments

Comments
 (0)