You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: update action.yml, README, and package.json for improved clarity and functionality
- Added .gitignore to exclude .cursor files.
- Updated action.yml to include a new input for read-write token and improved descriptions for inputs and outputs.
- Modified README to clarify usage instructions and added a section for setting up the Vercel Blob token.
- Enhanced package.json with a new dependency for @vercel/blob and updated the description for better accuracy.
This GitHub Action allows you to interact with the Vercel Blob API by specifying a source and destination path. It is designed to facilitate the management of blobs in your Vercel projects.
3
+
This GitHub Action allows you to upload files to Vercel Blob storage by specifying a source file and destination path. It provides an easy way to manage blob storage in your Vercel projects through GitHub Actions workflows.
4
4
5
5
## Inputs
6
6
7
-
-`source`: The source path of the blob you want to manage.
8
-
-`destination`: The destination path where the blob should be moved or copied.
7
+
### `source`
8
+
9
+
**Required** The source path of the file you want to upload to Vercel Blob storage.
10
+
11
+
### `destination`
12
+
13
+
**Required** The destination path where the file should be stored in Vercel Blob storage.
14
+
15
+
### `read-write-token`
16
+
17
+
**Required** Your Vercel Blob read-write token (`BLOB_READ_WRITE_TOKEN`). This should be stored as a GitHub secret for security.
18
+
19
+
## Outputs
20
+
21
+
### `url`
22
+
23
+
The URL of the uploaded blob file.
24
+
25
+
## Environment Variables
26
+
27
+
This action requires a Vercel Blob read-write token. The action will automatically set the `BLOB_READ_WRITE_TOKEN` environment variable for the Vercel Blob SDK to use. You can obtain this token from your Vercel dashboard:
28
+
29
+
1. Go to your Vercel dashboard
30
+
2. Navigate to Storage → Blob
31
+
3. Create or copy your `BLOB_READ_WRITE_TOKEN`
32
+
4. Add it as a GitHub secret in your repository
9
33
10
34
## Usage
11
35
12
-
To use this action in your workflow, you can include it as follows:
36
+
To use this action in your workflow, add it as a step in your GitHub Actions workflow file:
0 commit comments