Skip to content

feat: Replace custom IndexNow script with GitHub Action #22

feat: Replace custom IndexNow script with GitHub Action

feat: Replace custom IndexNow script with GitHub Action #22

name: Generate API docs
on:
push:
branches:
- main
permissions: write-all
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install dependencies
run: npm ci
- name: Generate API docs
run: npx docusaurus gen-api-docs all
- name: Configure Git
run: |
git config --global user.name "Dev-Docs"
git config --global user.email "$GITHUB_ACTOR@users.noreply.github.com"
- name: Pull latest changes
run: git pull origin main
- name: Commit changes
run: |
git add docs/api
git commit -m "Generate API docs"
git push