Skip to content

Commit

Permalink
added gh pages deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Shibi Suriya committed Sep 25, 2023
1 parent 8ebd67c commit 077af4f
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build and Deploy Docs

on:
push:
branches:
- main # Adjust this to the main branch name if it's different

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: recursive

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 18 # Adjust to the desired Node.js version

- name: Install dependencies and build
run: |
yarn install
yarn run build
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GH_DEPLOY }}
publish_dir: ./dist # Adjust the path to the build output directory

0 comments on commit 077af4f

Please sign in to comment.