The Step uploads files to a Google Cloud Storage bucket.
Description
The Step uploads files to a Google Cloud Storage bucket.
It can handle both files and directories, uploading the contents to the specified GCS bucket with the desired access control settings.
Using the Authenticate with GCP Step beforehand is recommended to securely provide short lived GCP credentials.
Add this step directly to your workflow in the Bitrise Workflow Editor.
You can also run this step directly with Bitrise CLI.
Inputs
| Key | Description | Flags | Default |
|---|---|---|---|
path |
Path to a file or folder to be uploaded. You can use absolute or relative paths. | required | |
bucket_name |
Name of the GCS bucket to upload the file to. | required | |
bucket_prefix |
Path in the GCS bucket where the file will be uploaded. If not provided, the file will be uploaded to the root of the bucket with its original filename. | ||
access_token |
The GCP Access Token. You can provide it directly or use the Authenticate with GCP Step. | required, sensitive | $GOOGLE_AUTH_TOKEN |
verbose |
Enable logging additional information for debugging. | required | false |
Outputs
There are no outputs defined in this stepWe welcome pull requests and issues against this repository.
For pull requests, work on your changes in a forked repository and use the Bitrise CLI to run step tests locally.
Learn more about developing steps: