Skip to content

Commit

Permalink
Merge pull request #57 from compolabs/feat/733
Browse files Browse the repository at this point in the history
[733] Init deploy on push
  • Loading branch information
EchoDex authored Feb 16, 2024
2 parents e7f53a7 + a1b775d commit 0df9ac6
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions spark-frontend/.github/workflows/deploy-to-gh-pages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build and Deploy to GitHub Pages

on:
push:
branches:
- master # Set this to your default branch if it's not master

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: "14" # Set this to your project's node version

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

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

- 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

0 comments on commit 0df9ac6

Please sign in to comment.