Skip to content

Commit

Permalink
fix: deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
EchoDex committed Feb 16, 2024
1 parent 0df9ac6 commit b30622c
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build and Deploy to GitHub Pages
on:
push:
branches:
- master # Set this to your default branch if it's not master
- master

jobs:
build-and-deploy:
Expand All @@ -15,16 +15,19 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: "14" # Set this to your project's node version
node-version: "16"

- name: Go to project directory
run: cd spark-frontend

- name: Install Dependencies
run: npm install # or use yarn
run: npm install

- name: Build Project
run: npm run build # Replace with your build command
run: npm run build

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build # Set this to your build output directory
publish_dir: ./build

0 comments on commit b30622c

Please sign in to comment.