Skip to content

Commit

Permalink
feat(ci): adding the ci
Browse files Browse the repository at this point in the history
  • Loading branch information
tomrpl committed Jun 27, 2024
1 parent a333e83 commit 40ddf62
Show file tree
Hide file tree
Showing 3 changed files with 5,610 additions and 469 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build and Deploy to Netlify

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
name: Build and Deploy
runs-on: ubuntu-latest

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

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22.3.0" # Use the Node.js version specified in your project

- name: Install dependencies
run: yarn install

- name: Build project
run: yarn build

- name: Deploy to Netlify
run: npx netlify deploy --dir=build --prod
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
},
"devDependencies": {
"@types/dotenv-webpack": "^7.0.7",
"netlify-cli": "^17.30.0",
"typescript": "^5.5.2"
}
}
Loading

0 comments on commit 40ddf62

Please sign in to comment.