Skip to content

Commit bce6560

Browse files
committed
fix: resolve file path issues for deployment
- Fix VERSION variable usage instead of tag substitution - Add file verification step before deployment - Remove artifacts directory complexity - Use direct file references for deployment - Update version to 1.4.7 for final testing - This should resolve 'File not found' errors for both Chrome and Firefox Changes: - Build: Creates version-specific files with VERSION variable - Verify: Confirms files exist before deployment - Deploy: Uses direct file paths instead of tag substitution - Simplified: Removed artifacts directory complexity
1 parent c41cf2f commit bce6560

File tree

2 files changed

+31
-4
lines changed

2 files changed

+31
-4
lines changed

.github/workflows/ci-cd.yml

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,24 +200,51 @@ jobs:
200200
201201
- name: Build Version-Specific Artifacts
202202
run: |
203-
echo "📦 Building version-specific artifacts..."
204203
VERSION=$(node -p 'require("./package.json").version')
205204
cp blog-link-analyzer.zip "blog-link-analyzer-${VERSION}.zip"
206205
cp blog-link-analyzer-firefox.xpi "blog-link-analyzer-firefox-${VERSION}.xpi"
207206
echo "✅ Artifacts built with version ${VERSION}"
208207
echo "📋 Available artifacts:"
209-
ls -la blog-link-analyzer-*.zip blog-link-analyzer-firefox-*.xpi
208+
ls -la blog-link-analyzer-${VERSION}.zip blog-link-analyzer-firefox-${VERSION}.xpi
209+
210+
- name: Verify Deployment Files
211+
run: |
212+
VERSION=$(node -p 'require("./package.json").version')
213+
echo "🔍 Verifying deployment files exist..."
214+
echo "Looking for: blog-link-analyzer-${VERSION}.zip"
215+
if [ -f "blog-link-analyzer-${VERSION}.zip" ]; then
216+
echo "✅ Chrome ZIP found"
217+
else
218+
echo "❌ Chrome ZIP NOT found"
219+
fi
220+
echo "Looking for: blog-link-analyzer-firefox-${VERSION}.xpi"
221+
if [ -f "blog-link-analyzer-firefox-${VERSION}.xpi" ]; then
222+
echo "✅ Firefox XPI found"
223+
else
224+
echo "❌ Firefox XPI NOT found"
225+
fi
226+
echo "Current directory contents:"
227+
find . -name "blog-link-analyzer-*" -type f -exec ls -la {} \;
210228
211229
- name: Deploy to Chrome Web Store
212230
uses: wdzeng/chrome-extension@v1
213231
with:
214232
extension-id: ${{ secrets.CHROME_EXTENSION_ID }}
215-
zip-path: blog-link-analyzer-${{ github.event.release.tag_name }}.zip
233+
zip-path: blog-link-analyzer-${VERSION}.zip
216234
client-id: ${{ secrets.CHROME_CLIENT_ID }}
217235
client-secret: ${{ secrets.CHROME_CLIENT_SECRET }}
218236
refresh-token: ${{ secrets.CHROME_REFRESH_TOKEN }}
219237
continue-on-error: true
220238

239+
- name: Deploy to Firefox Add-ons
240+
uses: wdzeng/firefox-addon@v1
241+
with:
242+
addon-guid: ${{ secrets.FIREFOX_ADDON_GUID }}
243+
xpi-path: blog-link-analyzer-firefox-${VERSION}.xpi
244+
jwt-issuer: ${{ secrets.FIREFOX_JWT_ISSUER }}
245+
jwt-secret: ${{ secrets.FIREFOX_JWT_SECRET }}
246+
continue-on-error: true
247+
221248
- name: Deploy to Firefox Add-ons
222249
uses: wdzeng/firefox-addon@v1
223250
with:

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.6",
3+
"version": "1.4.7",
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)