Merge pull request #25 from XpressAI/fahreza/package-updates #26
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: Website Documentation | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [ main ] | |
| paths: | |
| - 'docs/**' | |
| - mkdocs.yml | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install SSH Key | |
| uses: shimataro/ssh-key-action@v2 | |
| with: | |
| key: ${{ secrets.SSH_PRIVATE_KEY }} | |
| known_hosts: 'placeholder' | |
| - name: Adding Known Hosts | |
| run: ssh-keyscan -H ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts | |
| - name: Set up Python 3.11 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Set up uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| version: latest | |
| - name: Set up pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: latest | |
| - name: Install dependencies | |
| run: | | |
| # Install all dependency groups needed for tests | |
| uv sync --all-extras --all-groups | |
| - name: Build Docs | |
| run: | | |
| uv run mkdocs build --strict | |
| - name: Copying to www.xaibo.ai | |
| run: rsync -a -v -h site/ ${{ secrets.SSH_USERNAME }}@${{ secrets.SSH_HOST }}:/var/www/xaibo.ai/ --delete |