Repository navigation
Docs updated #46
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy Documentation | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - 'docs/**' | |
| - 'docs-site/**' | |
| - '.github/workflows/docs.yml' | |
| permissions: | |
| contents: write | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Source | |
| uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Sync Design Tokens | |
| run: node scripts/sync-design-tokens.cjs | |
| - name: Build static site | |
| run: npm run docs:build | |
| - name: Deploy to lekha.github.io | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| with: | |
| folder: docs-site-dist | |
| repository-name: WGLabz/thenotelyapp.github.io | |
| branch: main | |
| token: ${{ secrets.DEPLOY_DOCS_TOKEN || secrets.GITHUB_TOKEN }} | |
| clean: true |