Skip to content

Commit

Permalink
Added github deploy yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishannaik committed Apr 19, 2024
1 parent 1f35a15 commit 35a6fa2
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- main # Change this to your main branch name

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

- name: Install dependencies and build
run: |
npm install
cd server && npm run build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./client/dist # Change this to your build output directory

0 comments on commit 35a6fa2

Please sign in to comment.