diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 017fe37..33a1482 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -28,3 +28,36 @@ jobs:
- name: Build project
run: npm run build
+
+ deploy:
+ if: github.ref == 'refs/heads/main'
+ needs: build-and-test
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v3
+
+ - name: Set up Node.js
+ uses: actions/setup-node@v3
+ with:
+ node-version: '18'
+
+ - name: Install dependencies
+ run: npm install
+
+ - name: Build project
+ run: npm run build
+
+ - name: Deploy to Netlify
+ uses: nwtgck/actions-netlify@v1.2
+ with:
+ publish-dir: ./dist
+ production-branch: main
+ deploy-message: ${{ github.event.head_commit.message }}
+ enable-pull-request-comment: true
+ enable-commit-comment: true
+ overwrites-pull-request-comment: true
+ env:
+ NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
+ NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
+ timeout-minutes: 20
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
deleted file mode 100644
index ae2de6a..0000000
--- a/.github/workflows/deploy.yml
+++ /dev/null
@@ -1,38 +0,0 @@
-name: Deploy
-
-on:
- push:
- branches:
- - main
-
-jobs:
- deploy:
- runs-on: ubuntu-latest
- steps:
- - name: Checkout code
- uses: actions/checkout@v3
-
- - name: Set up Node.js
- uses: actions/setup-node@v3
- with:
- node-version: '18'
-
- - name: Install dependencies
- run: npm install
-
- - name: Build project
- run: npm run build
-
- - name: Deploy to Netlify
- uses: nwtgck/actions-netlify@v1.2
- with:
- publish-dir: ./dist
- production-branch: main
- deploy-message: ${{ github.event.head_commit.message }}
- enable-pull-request-comment: true
- enable-commit-comment: true
- overwrites-pull-request-comment: true
- env:
- NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
- NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
- timeout-minutes: 10
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index bea8b4a..e07ca9d 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,10 +4,8 @@
-
-
+
-
@@ -160,7 +158,7 @@
-
+
@@ -482,7 +480,15 @@
1719184899883
-
+
+
+ 1719185893875
+
+
+
+ 1719185893875
+
+
@@ -503,7 +509,6 @@
-
@@ -528,7 +533,8 @@
-
+
+