From e1c089b93838fbe23d1d590fa468ab7f4766c9e5 Mon Sep 17 00:00:00 2001 From: jt Date: Fri, 24 Jul 2026 23:11:28 -0700 Subject: [PATCH] Deploy docs to Azure SWA at litepost.lykos.ai instead of GitHub Pages The org-level Pages domain claim redirects project sites under lykos.ai, where the production site 404s them. The docs now deploy to a dedicated Free-tier Static Web App (lykos-infra envs/litepost-docs-prod) with its own subdomain: swap deploy-pages for Azure/static-web-apps-deploy, drop the /LitePost/ base path, and point README links at litepost.lykos.ai. GitHub Pages on this repo is disabled. Co-Authored-By: Claude Fable 5 --- .github/workflows/docs.yml | 31 +++++++++++-------------------- README.md | 8 ++++---- docs/.vitepress/config.mts | 5 ++--- 3 files changed, 17 insertions(+), 27 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index ddd6de3..39f7b8d 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -13,16 +13,14 @@ on: permissions: contents: read - pages: write - id-token: write concurrency: - group: pages + group: docs-deploy cancel-in-progress: false jobs: - build: - name: Build Docs + deploy: + name: Build and Deploy Docs runs-on: ubuntu-latest steps: - name: Checkout @@ -46,19 +44,12 @@ jobs: - name: Build with VitePress run: pnpm docs:build - - name: Upload artifact - uses: actions/upload-pages-artifact@v3 + # Deploys to the litepost-docs Azure Static Web App (litepost.lykos.ai). + # The token is provisioned by lykos-infra envs/litepost-docs-prod. + - name: Deploy to Azure Static Web Apps + uses: Azure/static-web-apps-deploy@v1 with: - path: docs/.vitepress/dist - - deploy: - name: Deploy to GitHub Pages - needs: build - runs-on: ubuntu-latest - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - steps: - - name: Deploy - id: deployment - uses: actions/deploy-pages@v4 + azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_DOCS }} + action: upload + app_location: docs/.vitepress/dist + skip_app_build: true diff --git a/README.md b/README.md index 2bc013d..50d0001 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Built with Tauri, Rust, and React. Your requests, collections, and history live plain JSON files on your machine and nowhere else. [**Download**](https://github.com/LykosAI/LitePost/releases/latest) · -[**Documentation**](https://lykos.ai/LitePost/) · +[**Documentation**](https://litepost.lykos.ai/) · [**Report an issue**](https://github.com/LykosAI/LitePost/issues) @@ -54,7 +54,7 @@ No sign-up, no telemetry. LitePost updates itself in-app when new releases ship. - **Code generation** — copy any request as cURL, Python, JavaScript, C#, Go, or Ruby - **Six themes** — from the warm default **Night Desk** to the paper-and-cobalt **Schematic** light theme -Full guides for everything live in the [documentation](https://lykos.ai/LitePost/). +Full guides for everything live in the [documentation](https://litepost.lykos.ai/). ## Development @@ -86,7 +86,7 @@ cargo test # Rust backend (run inside src-tauri/) ### Docs site The documentation is a [VitePress](https://vitepress.dev/) site in `docs/`, -deployed automatically to [lykos.ai/LitePost](https://lykos.ai/LitePost/) on merge: +deployed automatically to [litepost.lykos.ai](https://litepost.lykos.ai/) on merge: ```bash pnpm docs:dev @@ -96,7 +96,7 @@ pnpm docs:dev Issues and pull requests are welcome. Branch from `main`, keep commits focused, and make sure `pnpm test:run` and `cargo check` pass — CI enforces both. See the -[contributing guide](https://lykos.ai/LitePost/contributing) for details. +[contributing guide](https://litepost.lykos.ai/contributing) for details. ## License diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index 3a6d07f..2ad0a0c 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -3,9 +3,8 @@ import { defineConfig } from 'vitepress' export default defineConfig({ title: 'LitePost', description: 'A lightweight, cross-platform API testing application', - // Deployed to GitHub Pages (org domain): lykos.ai/LitePost/ - base: '/LitePost/', - head: [['link', { rel: 'icon', href: '/LitePost/logo.png' }]], + // Deployed to an Azure Static Web App at https://litepost.lykos.ai + head: [['link', { rel: 'icon', href: '/logo.png' }]], themeConfig: { logo: '/logo.png',