Skip to content

Commit

Permalink
Update build-and-deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
amardeepXy authored Dec 9, 2023
1 parent 2da1d91 commit 2862ab1
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4 # Use v4 instead of v3
with:
node-version: 18
node-version: 16 # Use Node.js version 16

- name: Install Dependencies
run: npm install
Expand All @@ -34,21 +34,18 @@ jobs:
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4 # Use v4 instead of v3
with:
node-version: 14
node-version: 16 # Use Node.js version 16

- name: Install Dependencies
run: npm install

- name: Deploy to GitHub Pages
run: |
# Replace 'gh-pages' with your GitHub Pages branch
git checkout -b gh-pages
git add -f dist
git commit -m "Deploy Vite build with Tailwind CSS"
git commit -m "Deploy Vite build"
git push origin gh-pages:gh-pages
env:
NODE_ENV: production

# Additional configurations if deploying to a different hosting service

0 comments on commit 2862ab1

Please sign in to comment.