Skip to content

fix (#350)

fix (#350) #38

Workflow file for this run

name: Sync docs to StakeWise Docs
on:
push:
branches:
- main
paths:
- 'src/**/*.md'
- 'src/**/*.mdx'
- 'documentation/**/*.md'
permissions:
contents: read
pull-requests: read
jobs:
sync-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.25.0
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '24'
cache: 'pnpm'
- name: Setup SSH key for docs repository
uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.SYNC_DOCS_SSH_KEY }}
- name: Install dependencies
run: |
pnpm install
- name: Version check
run: pnpm check:version
continue-on-error: false
- name: Run docs sync
env:
SYNC_DOCS_TOKEN: ${{ secrets.SYNC_DOCS_TOKEN }}
DISCORD_USERS_JSON: ${{ secrets.DISCORD_USERS_JSON }}
DISCORD_WEBHOOK_URL: ${{ secrets.SYNC_DOCS_DISCORD_WEBHOOK_URL }}
COMMIT_AUTHOR: ${{ github.actor }}
run: pnpm sync:docs