Skip to content

chore: moved github actions #1

chore: moved github actions

chore: moved github actions #1

Workflow file for this run

name: Deploy Docs
on:
push:
paths:
- 'docs/**' # Trigger only if changes are made inside the docs directory
branches:
- dev
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
path: docs # Specify the directory to checkout the repository
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '14'
- name: Install dependencies
run: cd docs && yarn install
- name: Build Docs
run: cd docs && yarn build
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/build # Adjust the path based on your project structure
- name: Clean up
run: rm -rf docs/build # Adjust the path based on your project structure