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 <[email protected]>
This commit is contained in:
OmkarDeshpande7
2026-09-12 22:57:39 +05:30
co-authored by Claude Sonnet 5
parent 52b0f2e5ac
commit 6ef6e413d9
+4 -34
View File
@@ -1,9 +1,8 @@
name: Deploy Docs & API Documentation name: Deploy Docs
on: on:
# Trigger the workflow every time you push to the `gh-pages` branch # 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: push:
branches: [ gh-pages ] branches: [ gh-pages ]
# Allows you to run this workflow manually from the Actions tab on GitHub. # Allows you to run this workflow manually from the Actions tab on GitHub.
@@ -13,9 +12,10 @@ on:
description: 'Branch to use' description: 'Branch to use'
required: true required: true
default: 'gh-pages' default: 'gh-pages'
# Allow this job to clone the repo and create a page deployment # Allow this job to clone the repo and create a page deployment
permissions: permissions:
contents: write contents: read
pages: write pages: write
id-token: write id-token: write
@@ -28,30 +28,6 @@ jobs:
with: with:
fetch-depth: 0 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
- name: Install, build, and upload your site - name: Install, build, and upload your site
env: env:
SITE_URL: ${{ env.SITE_URL }} SITE_URL: ${{ env.SITE_URL }}
@@ -59,12 +35,6 @@ jobs:
uses: withastro/action@v4 uses: withastro/action@v4
with: with:
path: docs/ # The root location of your Astro project inside the repository. (optional) 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: deploy:
needs: build needs: build