From 6ef6e413d9037c85806b34d324f39310e3c8a19c Mon Sep 17 00:00:00 2001 From: OmkarDeshpande7 Date: Sat, 12 Sep 2026 22:57:39 +0530 Subject: [PATCH] fix: remove dead Swagger UI generation steps from Pages workflow Steps referenced scripts/generate_all_openapi.sh and scripts/generate_swagger_links.sh, which don't exist in this repo (copied over from platform9/vjailbreak's workflow). This made the build job fail on every run, so Pages fell back to serving whatever was last manually committed to gh-pages instead of a fresh build. Co-Authored-By: Claude Sonnet 5 --- .github/workflows/deploy_gh_page.yaml | 40 ++++----------------------- 1 file changed, 5 insertions(+), 35 deletions(-) diff --git a/.github/workflows/deploy_gh_page.yaml b/.github/workflows/deploy_gh_page.yaml index 3a3db16..5e8a837 100644 --- a/.github/workflows/deploy_gh_page.yaml +++ b/.github/workflows/deploy_gh_page.yaml @@ -1,9 +1,8 @@ -name: Deploy Docs & API Documentation - +name: Deploy Docs on: # Trigger the workflow every time you push to the `gh-pages` branch - # Using a different branch name? Replace `gh-pages` with your branch’s name + # Using a different branch name? Replace `gh-pages` with your branch's name push: branches: [ gh-pages ] # Allows you to run this workflow manually from the Actions tab on GitHub. @@ -13,9 +12,10 @@ on: description: 'Branch to use' required: true default: 'gh-pages' + # Allow this job to clone the repo and create a page deployment permissions: - contents: write + contents: read pages: write id-token: write @@ -26,31 +26,7 @@ jobs: - name: Checkout your repository using git uses: actions/checkout@v4 with: - fetch-depth: 0 - - - name: Install yq for OpenAPI generation - run: | - wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O /usr/local/bin/yq - chmod +x /usr/local/bin/yq - - - name: Generate Swagger UI for all tags - run: | - chmod +x scripts/generate_all_openapi.sh - ./scripts/generate_all_openapi.sh - - - name: Generate Swagger UI links for all versions - run: ./scripts/generate_swagger_links.sh - - - name: List Swagger UI build output - run: ls -alR docs/public/swagger-ui/ || echo "No Swagger UI build output found" - - - name: Check generated Swagger UI links file - run: | - if [ -f docs/src/content/docs/guides/using_apis.md ]; then - head -20 docs/src/content/docs/guides/using_apis.md - else - echo "File not found: docs/src/content/docs/guides/using_apis.md" - fi + fetch-depth: 0 - name: Install, build, and upload your site env: @@ -59,12 +35,6 @@ jobs: uses: withastro/action@v4 with: path: docs/ # The root location of your Astro project inside the repository. (optional) - # node-version: 20 # The specific version of Node that should be used to build your site. Defaults to 20. (optional) - # package-manager: pnpm@latest # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional) - - name: Print Astro site configuration - run: | - echo "Astro Configuration:" - cat ./docs/astro.config.mjs deploy: needs: build