The publish profile has been saved to publish-profile.xml.
# View the content
cat publish-profile.xmlCopy the entire XML content (it's one long line starting with <publishData> and ending with </publishData>).
-
Go to your GitHub repository: https://github.com/adobe-commerce/azure-commerce-documentation-agent
-
Navigate to Settings → Secrets and variables → Actions
-
Click New repository secret
-
Fill in:
- Name:
AZURE_FUNCTIONAPP_PUBLISH_PROFILE - Value: Paste the entire XML content from
publish-profile.xml
- Name:
-
Click Add secret
git add .
git commit -m "Test GitHub Actions deployment"
git push origin main- Go to GitHub → Actions tab
- Select Deploy Azure Functions workflow
- Click Run workflow → Run workflow
- Go to GitHub → Actions tab
- Click on the running workflow
- Watch the progress:
- ✅ Run Tests
- ✅ Deploy to Azure
- ✅ Notify Deployment Status
After successful deployment, test the endpoint:
curl -X POST https://commerce-docs-api.azurewebsites.net/api/query \
-H "Content-Type: application/json" \
-d '{
"query": "How to install Adobe Commerce?",
"count": 5
}'- Check that
npm testandnpm run lintwork locally - Currently they're set to pass (echo and exit 0)
- Verify the publish profile secret is correct
- Check Azure Function App is running:
az functionapp show \ --name commerce-docs-api \ --resource-group commerce-ai-docs-rg \ --query "state"
- Check Azure Functions logs:
az functionapp log tail \ --name commerce-docs-api \ --resource-group commerce-ai-docs-rg
After testing, you can delete the publish profile file:
rm publish-profile.xmlNote: The file is already in .gitignore so it won't be committed.
Resource Group: commerce-ai-docs-rg (not commerce-docs-rg)
Function App: commerce-docs-api
Endpoint: https://commerce-docs-api.azurewebsites.net