This directory contains GitHub Actions workflows for automatically building and publishing SidekickAI to Chrome Web Store and Microsoft Edge Add-ons.
Before using these workflows, you need to set up API credentials for both stores.
-
Get Chrome Web Store API Credentials:
- Go to: https://console.cloud.google.com/
- Create a new project or select existing
- Enable "Chrome Web Store API"
- Create OAuth 2.0 credentials
- Download credentials JSON
-
Get Refresh Token:
- Use a tool like: https://github.com/fregante/chrome-webstore-upload-cli
- Or use: https://github.com/DrewML/chrome-webstore-token
- This will give you a refresh token
-
Get Extension ID:
- After first manual upload to Chrome Web Store
- Find it in the extension URL:
chrome.google.com/webstore/detail/[EXTENSION_ID]
-
Add GitHub Secrets:
- Go to:
Settings→Secrets and variables→Actions - Add these secrets:
CHROME_CLIENT_ID: Your OAuth client IDCHROME_CLIENT_SECRET: Your OAuth client secretCHROME_REFRESH_TOKEN: Your refresh tokenCHROME_EXTENSION_ID: Your extension ID (after first publish)
- Go to:
-
Get Edge Add-ons API Credentials:
- Go to: https://partner.microsoft.com/dashboard
- Navigate to your extension
- Go to "API Access" section
- Create Azure AD app registration
- Get Client ID and Client Secret
-
Get Product ID:
- After first manual upload to Edge Add-ons
- Find it in Partner Center → Your Extension → Overview
-
Get Tenant ID:
- Usually your Microsoft account tenant ID
- Can be found in Azure Portal → Azure Active Directory → Properties
-
Add GitHub Secrets:
- Add these secrets:
EDGE_CLIENT_ID: Your Azure AD client IDEDGE_CLIENT_SECRET: Your Azure AD client secretEDGE_PRODUCT_ID: Your extension product IDEDGE_TENANT_ID: Your Azure tenant ID
- Add these secrets:
-
Update version in
manifest.json:{ "version": "1.0.1" } -
Create and push a version tag:
git tag v1.0.1 git push origin v1.0.1
-
Workflow will automatically:
- Build the extension
- Update manifest version
- Create ZIP package
- Publish to Chrome Web Store
- Publish to Edge Add-ons
- Create GitHub release
- Go to:
Actions→Build and Publish Extension - Click "Run workflow"
- Enter version (e.g.,
1.0.1) - Select which stores to publish to
- Click "Run workflow"
- Build: Compiles the extension and creates ZIP
- Publish Chrome: Uploads to Chrome Web Store
- Publish Edge: Uploads to Microsoft Edge Add-ons
- Create Release: Creates GitHub release with download links
- Invalid credentials: Check your secrets are correct
- Extension not found: Make sure extension ID is correct (publish manually first)
- Permission denied: Ensure API has proper permissions
- Authentication failed: Check tenant ID and credentials
- Product not found: Publish manually first to get product ID
- Invalid package: Ensure ZIP is valid