Skip to content

Commit 65ad441

Browse files
committed
Update build.yml
1 parent ef34741 commit 65ad441

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.github/workflows/build.yml

+15-3
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,29 @@ jobs:
2525
- name: Build Chromium-based Extension
2626
run: |
2727
mkdir -p dist/chrome
28-
cp -r src/* dist/chrome/
28+
cp manifest.json dist/chrome/
29+
cp *.js dist/chrome/ || true
30+
cp *.css dist/chrome/ || true
31+
cp *.html dist/chrome/ || true
32+
cp -r images dist/chrome/ || true
33+
cp icon*.png dist/chrome/ || true
2934
cd dist/chrome
3035
zip -r ../chromium.zip *
3136
3237
- name: Build Firefox Extension
3338
run: |
3439
mkdir -p dist/firefox
35-
cp -r src/* dist/firefox/
40+
cp manifest.json dist/firefox/
41+
cp *.js dist/firefox/ || true
42+
cp *.css dist/firefox/ || true
43+
cp *.html dist/firefox/ || true
44+
cp -r images dist/firefox/ || true
45+
cp icon*.png dist/firefox/ || true
46+
cd dist/firefox
3647
jq '.browser_specific_settings = {"gecko": {"id": "[email protected]"}}' manifest.json > manifest.tmp
3748
mv manifest.tmp manifest.json
38-
web-ext build -s . -a ../firefox
49+
web-ext build
50+
mv web-ext-artifacts/*.zip ../firefox.zip
3951
4052
- name: Create Release
4153
id: create_release

0 commit comments

Comments
 (0)