-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from mention-me/chore/very-simple-documentation
Very simple documentation
- Loading branch information
Showing
3 changed files
with
48 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,46 @@ | ||
# Tray CDK Deployment | ||
|
||
A GitHub Action which can deploy Tray (formerly Tray.io, now Tray.ai) CDK connectors to a Tray organisation. | ||
|
||
## Inputs | ||
|
||
- `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**) | ||
|
||
## Outputs | ||
|
||
- `name` - The name of the deployed connector which was deployed. | ||
- `version` - The version of the deployed connector which was deployed. | ||
- `buildPath` The full path to the built connector (if successful). | ||
- `deploymentId` The ID of the deployment which was created (if successful). | ||
- `successful` - Whether the deployment was completed successfully. | ||
|
||
## Example usage | ||
|
||
```yaml | ||
uses: mention-me/[email protected] | ||
with: | ||
path: "path/to/connector/root" | ||
region: "us1" | ||
apiKey: ${{ secrets.TRAY_API_KEY }} | ||
``` | ||
# Contributing | ||
## Development | ||
To develop this action, you can use the following commands: | ||
- `npm run test` - Run the tests | ||
- `npm run bundle` - Update the distribution files (`./dist`). This is required before merging changes. | ||
|
||
## Releasing | ||
|
||
To release a new version of this action, you can do the following: | ||
|
||
1. Update the version in `package.json` (and run `npm install` to update the lock file) | ||
2. Run `npm run bundle` to update the distribution files | ||
3. Commit the changes | ||
4. Publish the [draft release](https://github.com/mention-me/tray-cdk-deployment/releases) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters