Skip to content

Commit

Permalink
fix script
Browse files Browse the repository at this point in the history
  • Loading branch information
meithebear committed May 31, 2024
1 parent fb8f1a6 commit 9a31b8d
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/cloudinary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,25 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

# Install Cloudinary CLI locally
# Set up Python environment
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x' # Ensure the required Python version is installed

# Install Cloudinary CLI using pip3
- name: Install Cloudinary CLI
run: npm install -g cloudinary-cli
run: pip3 install cloudinary-cli

# Configure Cloudinary Environment Variables
- name: Configure Cloudinary Environment
run: |
echo "CLOUDINARY_URL=cloudinary://${{ secrets.CLOUDINARY_API_KEY }}:${{ secrets.CLOUDINARY_API_SECRET }}@${{ secrets.CLOUDINARY_CLOUD_NAME }}" >> $GITHUB_ENV
# Export Path and Upload to Cloudinary
# Authenticate and Upload to Cloudinary
- name: Upload to Cloudinary
run: |
set -e # Ensure the script fails on error
export PATH=$PATH:$(npm root -g)/.bin
cld auth
cld upload_folder ${GITHUB_WORKSPACE}/src/ --recursive true
echo "Upload to Cloudinary completed successfully."
Expand Down

0 comments on commit 9a31b8d

Please sign in to comment.