Skip to content

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

License

Notifications You must be signed in to change notification settings

emmanuelgautier/cloudinary-upload-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

"Cloudinary Upload" Action For GitHub Actions

Upload your medias with Cloudinary Upload Github Action to Cloudinary SaaS solution for images and videos upload, storage, optimization and CDN.

Table of Contents

Usage

Add the following step to your workflow:

    - 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.

    - 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.

    - 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 for the full documentation for this action's inputs and outputs.

Credentials

We recommend following Configuration Cloudinary Documentation for adding your credentials.

Maintainers

Emmanuel Gautier
Emmanuel Gautier

License

MIT © Emmanuel Gautier