Skip to main content

Import local file assets into a new Github repository

Project description

cdk-github-import

Import local file assets into a new GitHub repository

Usage

# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
from cdk_github_import import Deployment

# create a new github repository pahud/new-repo and import all files from ./lib to it
Deployment(stack, "NewImport",
    path="./lib",
    owner="pahud",
    repository_name="new-repo",
    access_token=cdk.SecretValue.secrets_manager("my-github-token",
        json_field="token"
    )
)

Private repository

Set visibility to PRIVATE to create a private GitHub repository.

# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
visibility: RepositoryVisibility.PRIVATE,

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cdk-github-import-1.0.0.tar.gz (15.6 kB view hashes)

Uploaded Source

Built Distribution

cdk_github_import-1.0.0-py3-none-any.whl (16.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page