Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
netto14cr committed Aug 23, 2024
1 parent 3c1c4fc commit 4db3da9
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Deploy to Vercel

on:
push:
branches:
- main # Cambia "main" por la rama que uses, si es diferente

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '16' # Cambia a la versión de Node.js que necesitas

- name: Install Vercel CLI
run: npm install -g vercel

- name: Deploy to Vercel
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
GOOGLE_CREDENTIALS: ${{ secrets.GOOGLE_CREDENTIALS }} # El contenido JSON como variable secreta
run: |
echo $GOOGLE_CREDENTIALS > google/key/credentials.json # Crea el archivo JSON
vercel --prod --confirm

0 comments on commit 4db3da9

Please sign in to comment.