A GitHub Action which can deploy Tray (formerly Tray.io, now Tray.ai) CDK connectors to a Tray organisation.
apiKey- The API key for the Tray.ai account (Required)region- The region of the Tray.ai account. Options:us1,eu1,apac1(Required)executable- The path to the CDK executable. If not set, the global executable will be used (Optional)path- The path to the CDK connector which should be built and deployed. If not set, the project root will be used (Optional)
name- The name of the deployed connector which was deployed.version- The version of the deployed connector which was deployed.buildPathThe full path to the built connector (if successful).deploymentIdThe ID of the deployment which was created (if successful).successful- Whether the deployment was completed successfully.
uses: mention-me/[email protected]
with:
path: "path/to/connector/root"
region: "us1"
apiKey: ${{ secrets.TRAY_API_KEY }}To develop this action, you can use the following commands:
npm run test- Run the testsnpm run bundle- Update the distribution files (./dist). This is required before merging changes.
To release a new version of this action, you can do the following:
- Update the version in
package.json(and runnpm installto update the lock file) - Run
npm run bundleto update the distribution files - Commit the changes
- Publish the draft release