Prerequisites
Before you begin:- A GitHub account
- An existing PTE app (source code as a
.zipfile or direct download URL) - Familiarity with AL-Go for GitHub basics
This example uses the BingMaps PTE sample app from https://github.com/microsoft/bcsamples-bingmaps.pte, but you can follow the same steps with your own app.
Prepare Your App
Locate your app artifact
You need either:
- A direct download URL to a
.zipfile containing your app source code - The ability to upload your app to a temporary storage location
Set Up the AL-Go Repository
Create repository from template
- Navigate to https://github.com/microsoft/AL-Go-PTE
- Click Use this template
- Enter a repository name (e.g.,
app2) - Click Create Repository from template
Run the Add existing app workflow
- Go to Actions in your new repository
- Select the Add existing app or test app workflow
- Click Run workflow
Provide the download URL
In the Direct Download URL field, paste the direct download URL to your app’s
.zip file and click Run workflow.The URL must be a direct download link that returns the
.zip file when accessed. Sharing links from cloud storage services need to be converted to direct download URLs.Review the pull request
When the workflow completes:
- Navigate to Pull requests
- Review the pull request created by the workflow
- Examine the changes to ensure your app was imported correctly
Verify the CI/CD Pipeline
Monitor the CI/CD workflow
- Go to the Actions tab
- Click on the running CI/CD workflow
- Monitor the build progress
Review build results
After the workflow completes successfully:
- Check the build summary for artifact information
- Verify that your app compiled without errors
- Download build artifacts if needed
Common Scenarios After Import
Once your app is imported and building successfully, you may want to:Add Dependencies
If your app depends on other apps not included in the base Business Central artifacts:Configure Multiple Apps
If your repository contains multiple apps, specify the folder structure:Set Target Country
If your app targets a specific localization:w1 with your target country code (us, dk, de, etc.).
Next Steps
With CI/CD configured, you can now:Register Sandbox Environment
Set up a sandbox environment for automated deployment
Create a Release
Create versioned releases of your app
Register Production Environment
Configure production environment deployment
Configure Settings
Customize build and deployment settings
Troubleshooting
Build Fails with Missing Dependencies
If your build fails due to missing dependencies:- Check the error message for the missing app name
- Add the dependency to
appDependencyProbingPathsorinstallAppssettings - Commit the changes to trigger a new build
Authentication Issues
If you see authentication errors during workflows:- Ensure all required secrets are configured
- Verify secret names match the settings indirection (if used)
- Check that secrets haven’t expired