Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/emmanuelgautier/cloudinary-upload-action
- Owner: emmanuelgautier
- License: mit
- Created: 2021-10-29T16:13:18.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-28T22:08:01.000Z (8 months ago)
- Last Synced: 2024-05-29T11:21:58.567Z (8 months ago)
- Topics: cloudinary, github-actions, image-processing
- Language: JavaScript
- Homepage: https://github.com/marketplace/actions/cloudinary-upload-images
- Size: 755 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
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)