Skip to content

Commit

Permalink
feat(docs): add GitHub Actions workflow for building and deploying do…
Browse files Browse the repository at this point in the history
…cumentation
  • Loading branch information
engsr6982 committed Jan 18, 2025
1 parent 42adc44 commit c3f3a61
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build docs

on:
push:
paths:
- types/**
- docs/**
- .github/workflows/docs.yml
pull_request:
paths:
- types/**
- docs/**
- .github/workflows/docs.yml
workflow_dispatch:

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

- name: Install and Build
run: |
cd docs
npm install
npm run docs:build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
ACCESS_TOKEN: ${{ secrets.DEPLOY_DOCS }}
BRANCH: gh-pages
FOLDER: docs

0 comments on commit c3f3a61

Please sign in to comment.