Skip to content
This repository has been archived by the owner on Nov 4, 2023. It is now read-only.

Merge pull request #5 from promptengineers-ai/development #4

Merge pull request #5 from promptengineers-ai/development

Merge pull request #5 from promptengineers-ai/development #4

Workflow file for this run

on:
push:
branches:
- master # or the name of your default branch
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Cache global npm modules
uses: actions/cache@v3
with:
path: /usr/local/lib/node_modules
key: npm-global-modules-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
npm-global-modules-${{ runner.os }}-
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: '16' # or your preferred Node.js version
- name: Install Vercel CLI
run: npm install -g vercel
- name: Deploy to Vercel
run: vercel . --token ${{ secrets.VERCEL_TOKEN }} --confirm # You might need the --confirm flag if you haven't set up the project yet
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}