Skip to content

Commit 808304e

Browse files
committed
fix: resolve Chrome and Firefox deployment errors
- Bump version to 1.4.4 to avoid Firefox version conflicts - Add artifact cleanup step to remove old ZIP/XPI files - Build version-specific artifacts with release tag names - Fix Chrome glob pattern by using specific filename - Use release tag for artifact naming to ensure uniqueness - This should resolve both deployment errors: * Chrome: Multiple files found (fixed with specific filename) * Firefox: Version 1.3.6 already exists (fixed with 1.4.4)
1 parent e47890e commit 808304e

File tree

2 files changed

+21
-5
lines changed

2 files changed

+21
-5
lines changed

.github/workflows/ci-cd.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,23 +180,39 @@ jobs:
180180
echo "Chrome deployment will be skipped"
181181
fi
182182
183+
- name: Clean Old Artifacts
184+
run: |
185+
echo "🧹 Cleaning old artifacts..."
186+
rm -f blog-link-analyzer-*.zip
187+
rm -f blog-link-analyzer-*.crx
188+
rm -f blog-link-analyzer-firefox-*.xpi
189+
echo "✅ Artifacts cleaned"
190+
191+
- name: Build Version-Specific Artifacts
192+
run: |
193+
echo "📦 Building version-specific artifacts..."
194+
VERSION=$(node -p 'require("./package.json").version')
195+
cp blog-link-analyzer.zip "blog-link-analyzer-${VERSION}.zip"
196+
cp blog-link-analyzer-firefox.xpi "blog-link-analyzer-firefox-${VERSION}.xpi"
197+
echo "✅ Artifacts built with version ${VERSION}"
198+
echo "📋 Available artifacts:"
199+
ls -la blog-link-analyzer-*.zip blog-link-analyzer-firefox-*.xpi
200+
183201
- name: Deploy to Chrome Web Store
184202
uses: wdzeng/chrome-extension@v1
185203
with:
186204
extension-id: ${{ secrets.CHROME_EXTENSION_ID }}
187-
zip-path: blog-link-analyzer-*.zip
205+
zip-path: blog-link-analyzer-${{ github.event.release.tag_name }}.zip
188206
client-id: ${{ secrets.CHROME_CLIENT_ID }}
189207
client-secret: ${{ secrets.CHROME_CLIENT_SECRET }}
190208
refresh-token: ${{ secrets.CHROME_REFRESH_TOKEN }}
191209
continue-on-error: true
192210

193-
194-
195211
- name: Deploy to Firefox Add-ons
196212
uses: wdzeng/firefox-addon@v1
197213
with:
198214
addon-guid: ${{ secrets.FIREFOX_ADDON_GUID }}
199-
xpi-path: blog-link-analyzer-firefox-*.xpi
215+
xpi-path: blog-link-analyzer-firefox-${{ github.event.release.tag_name }}.xpi
200216
jwt-issuer: ${{ secrets.FIREFOX_JWT_ISSUER }}
201217
jwt-secret: ${{ secrets.FIREFOX_JWT_SECRET }}
202218
continue-on-error: true

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "blog-link-analyzer",
3-
"version": "1.4.3",
3+
"version": "1.4.4",
44
"description": "Detects blog posts and extracts linked blog content with titles and authors",
55
"main": "background/service-worker.js",
66
"scripts": {

0 commit comments

Comments
 (0)