Skip to content

Commit

Permalink
ci: Add CI and CD with github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
LaercioSR committed Jul 16, 2024
1 parent 2f8b8ab commit 72049c9
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/continuous-delivery.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: "[CD] Continuous Delivery"

on:
push:
branches: [ main ]

env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}

jobs:
deploy:
runs-on: ubuntu-latest
steps:
## [Common_CI_Steps]
- uses: actions/checkout@v3
## =================
- name: "Debug"
run: |
ls -la
- name: "Install Dependencies"
run: "npm install"
- name: "Deploy"
run: "npx vercel --prod --token=${{ secrets.VERCEL_TOKEN }}"
20 changes: 20 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: "[CI] Continuous Integration"

on:
pull_request:
types: [opened, synchronize]

jobs:
lint:
runs-on: ubuntu-latest
steps:
## [Common_CI_Steps]
- uses: actions/checkout@v3
## =================
- name: "Debug"
run: |
ls -la
- name: "Install Dependencies"
run: "npm install"
- name: "Lint"
run: "npm run lint"

0 comments on commit 72049c9

Please sign in to comment.