Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/emmanuelgautier/cloudinary-upload-action

Upload your medias with Cloudinary Upload Github Action to Cloudinary SaaS solution.
https://github.com/emmanuelgautier/cloudinary-upload-action

cloudinary github-actions image-processing

Last synced: 2 months ago
JSON representation

Upload your medias with Cloudinary Upload Github Action to Cloudinary SaaS solution.

Awesome Lists containing this project

README

        

## "Cloudinary Upload" Action For GitHub Actions

Upload your medias with Cloudinary Upload Github Action to [Cloudinary](https://cloudinary.com/) SaaS solution for images and videos upload, storage, optimization and CDN.

**Table of Contents**

- [Usage](#usage)
- [Credentials](#credentials)
- [Maintainers](#maintainers)
- [License](#license)

## Usage

Add the following step to your workflow:

```yaml
- name: Cloudinary Upload Image
uses: emmanuelgautier/cloudinary-upload-action@v2
with:
cloud-name: ${{ secrets.CLOUDINARY_CLOUD_NAME }}
api-key: ${{ secrets.CLOUDINARY_API_KEY }}
api-secret: ${{ secrets.CLOUDINARY_API_SECRET }}
image: "./your-image.jpg"
```

### Multiple files upload

You can upload multiple files with the `images` parameter putting a file path pattern.

```yaml
- name: Cloudinary Upload Images
uses: emmanuelgautier/cloudinary-upload-action@v2
with:
cloud-name: ${{ secrets.CLOUDINARY_CLOUD_NAME }}
api-key: ${{ secrets.CLOUDINARY_API_KEY }}
api-secret: ${{ secrets.CLOUDINARY_API_SECRET }}
images: "./medias/**/*.jpg"
```

Or directly an array of files path.

```yaml
- name: Cloudinary Upload Images
uses: emmanuelgautier/cloudinary-upload-action@v2
with:
cloud-name: ${{ secrets.CLOUDINARY_CLOUD_NAME }}
api-key: ${{ secrets.CLOUDINARY_API_KEY }}
api-secret: ${{ secrets.CLOUDINARY_API_SECRET }}
images: "[\"./medias/images/test1.jpg\", \"./medias/images/test2.jpg\"]"
```

See [action.yml](action.yml) for the full documentation for this action's inputs and outputs.

## Credentials

We recommend following [Configuration Cloudinary Documentation](https://cloudinary.com/documentation/node_integration#configuration) for adding your credentials.

## Maintainers

[![Emmanuel Gautier](https://avatars0.githubusercontent.com/u/2765366?s=144)](https://www.emmanuelgautier.com) |
--- |
[Emmanuel Gautier](https://www.emmanuelgautier.com) |

## License

MIT © [Emmanuel Gautier](https://www.emmanuelgautier.com)