Skip to content

Commit 6c69e57

Browse files
committed
feat: Switch to Service Account authentication for Chrome Web Store
- Replace OAuth approach with Service Account authentication - Use gcloud CLI for modern API access - Higher probability of bypassing PKG_MUST_UPDATE_AS_CRX - Update deployment notifications to reflect Service Account approach BREAKING CHANGE: Chrome deployment now uses Service Account instead of OAuth
1 parent da88fdf commit 6c69e57

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

.github/workflows/ci-cd.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -266,17 +266,15 @@ jobs:
266266
echo "Chrome ZIP: $CHROME_ZIP_PATH"
267267
echo "Firefox: $FIREFOX_XPI_PATH"
268268
269-
- name: Deploy to Chrome Web Store (API V2 Two-Step)
269+
- name: Deploy to Chrome Web Store (Service Account)
270270
id: chrome-deploy
271271
run: |
272-
chmod +x scripts/test-api-v2-two-step.sh
273-
./scripts/test-api-v2-two-step.sh
272+
chmod +x scripts/test-api-v2-service-account.sh
273+
./scripts/test-api-v2-service-account.sh
274274
env:
275275
CHROME_EXTENSION_ID: ${{ secrets.CHROME_EXTENSION_ID }}
276-
CHROME_CLIENT_ID: ${{ secrets.CHROME_CLIENT_ID }}
277-
CHROME_CLIENT_SECRET: ${{ secrets.CHROME_CLIENT_SECRET }}
278-
CHROME_REFRESH_TOKEN: ${{ secrets.CHROME_REFRESH_TOKEN }}
279-
CHROME_PUBLISHER_ID: ${{ secrets.CHROME_PUBLISHER_ID }}
276+
CHROME_SERVICE_ACCOUNT: ${{ secrets.CHROME_SERVICE_ACCOUNT }}
277+
CHROME_PROJECT_ID: ${{ secrets.CHROME_PROJECT_ID }}
280278
continue-on-error: true
281279

282280
- name: Deploy to Firefox Add-ons
@@ -292,7 +290,7 @@ jobs:
292290
if: success()
293291
run: |
294292
echo "🚀 Store Deployment Successful"
295-
echo "✅ Chrome Web Store: ZIP file uploaded via API V2 (two-step process)"
293+
echo "✅ Chrome Web Store: ZIP file uploaded via Service Account (API V2)"
296294
echo "✅ Firefox Add-ons: XPI submitted for review"
297295
echo "Release: ${{ github.event.release.tag_name }}"
298296
echo "Check individual store dashboards for approval status"
@@ -302,7 +300,7 @@ jobs:
302300
run: |
303301
echo "❌ Store Deployment Failed"
304302
echo "Please check workflow logs for details"
305-
echo "**Chrome Web Store**: Check ZIP file, API V2 credentials, and two-step process"
303+
echo "**Chrome Web Store**: Check ZIP file, Service Account credentials, and API V2 setup"
306304
echo "**Firefox Add-ons**: Check XPI package and API credentials"
307305
echo "Release: ${{ github.event.release.tag_name }}"
308306
echo "To rollback, run: ./scripts/rollback.sh latest chrome,firefox"
@@ -317,7 +315,7 @@ jobs:
317315
issue_number: context.issue.number,
318316
owner: context.repo.owner,
319317
repo: context.repo.repo,
320-
body: '❌ **Store Deployment Failed**\n\nPlease check the workflow logs for details.\n**Chrome Web Store**: Check ZIP file, API V2 credentials, and two-step process\n**Firefox Add-ons**: Check XPI package and API credentials\n\nRelease: ${{ github.event.release.tag_name }}\n\nTo rollback, run:\n```bash\n./scripts/rollback.sh latest chrome,firefox\n```'
318+
body: '❌ **Store Deployment Failed**\n\nPlease check the workflow logs for details.\n**Chrome Web Store**: Check ZIP file, Service Account credentials, and API V2 setup\n**Firefox Add-ons**: Check XPI package and API credentials\n\nRelease: ${{ github.event.release.tag_name }}\n\nTo rollback, run:\n```bash\n./scripts/rollback.sh latest chrome,firefox\n```'
321319
});
322320
}
323321

0 commit comments

Comments
 (0)