chore: don't clean up all mdx files as we need them, just not the ones in the docs folder

Signed-off-by: benjdlambert <ben@blam.sh>
This commit is contained in:
benjdlambert
2025-03-28 10:09:25 +01:00
parent 3a73c9a66c
commit fa15fc9347
2 changed files with 6 additions and 19 deletions
+1 -1
View File
@@ -235,7 +235,7 @@ jobs:
run: rm -r docs/reference
- name: clear OpenAPI reference
run: find . -name '*.api.mdx' -type f -delete
run: find ./docs -name '*.api.mdx' -type f -delete
# Next docs
- name: checkout master
+5 -18
View File
@@ -233,14 +233,6 @@ jobs:
name: stable-openapi-docs
path: docs
- name: upload working dir
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: docs-status
path: docs/**
if-no-files-found: error
retention-days: 1
- name: grab lastest releases docs
run: |
git fetch origin master --depth 1
@@ -253,6 +245,9 @@ jobs:
- name: clear API reference
run: rm -r docs/reference
- name: clear OpenAPI reference
run: find ./docs -name '*.api.mdx' -type f -delete
- name: build API reference
run: yarn build:api-docs
@@ -261,8 +256,8 @@ jobs:
with:
clean: false
# - name: Build MkDocs for TechDocs
# run: mkdocs build --strict
- name: Build MkDocs for TechDocs
run: mkdocs build --strict
- name: download next reference
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4
@@ -276,14 +271,6 @@ jobs:
name: next-openapi-docs
path: docs
- name: upload working dir2
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: docs-status-2
path: docs/**
if-no-files-found: error
retention-days: 1
- name: build microsite
run: yarn build
working-directory: microsite