Skip to content

Commit

Permalink
Add initial deploy to vercel pipeline and testing
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoEscaleira committed Nov 21, 2023
1 parent acc9580 commit 29d2cd7
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/deployProd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "Deploy Prod"

on:
workflow_dispatch:

jobs:
vercel:
runs-on: ubuntu-latest
name: "Deploy Prod"

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18

- name: "Deploy to Vercel Production"
run: npx vercel --token ${VERCEL_TOKEN} --prod
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
22 changes: 22 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Testing CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
test:
runs-on: ubuntu-latest
name: 'Test'

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'

- run: yarn
- run: yarn lint

0 comments on commit 29d2cd7

Please sign in to comment.