cdk-github-import
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

cdk-github-import

Import local file assets into a new GitHub repository

Usage

import { Deployment } from 'cdk-github-import';

// create a new github repository pahud/new-repo and import all files from ./lib to it
new Deployment(stack, 'NewImport', {
    path: './lib',
    owner: 'pahud',
    repositoryName: 'new-repo',
    accessToken: cdk.SecretValue.secretsManager('my-github-token', {
      jsonField: 'token',
    }),
})

Private repository

Set visibility to PRIVATE to create a private GitHub repository.

visibility: RepositoryVisibility.PRIVATE,

Readme

Keywords

Package Sidebar

Install

npm i cdk-github-import

Weekly Downloads

0

Version

1.0.0

License

Apache-2.0

Unpacked Size

43.1 kB

Total Files

17

Last publish

Collaborators

  • pahud