Skip to content

Commit 3d1b9a5

Browse files
author
zhiyuanlei
committed
fix(ci): use zip-based crx3 packaging to avoid file listing issues
1 parent bc4c278 commit 3d1b9a5

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,15 @@ jobs:
1818
with:
1919
node-version: '20'
2020

21-
- name: Install crx3
22-
run: npm install -g crx3
23-
2421
- name: Decode private key
2522
run: echo "${{ secrets.CRX_PRIVATE_KEY }}" | base64 -d > key.pem
2623

2724
- name: Build CRX
2825
run: |
29-
crx3 pack . -o opencode-reader.crx -p key.pem \
30-
--exclude .git --exclude .github --exclude key.pem --exclude '*.crx'
26+
zip -r extension.zip . -x '.git/*' '.github/*' 'key.pem' '*.crx' '*.zip'
27+
npm install crx3
28+
npx crx3 extension.zip -p key.pem -o opencode-reader.crx
29+
rm -f extension.zip
3130
3231
- name: Clean up key
3332
run: rm -f key.pem

0 commit comments

Comments
 (0)