Skip to content

Commit 6ae0004

Browse files
committed
Fix preview workflow compatibility
1 parent 4632a10 commit 6ae0004

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/preview-pages.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ jobs:
5555
cd ../main-site
5656
npm ci
5757
npm run build
58-
test -f dist/oauth/client-metadata.json
58+
if [ ! -f dist/oauth/client-metadata.json ] && [ ! -f dist/.well-known/oauth-cimd ]; then
59+
echo "Expected either dist/oauth/client-metadata.json or dist/.well-known/oauth-cimd in the root-site build"
60+
exit 1
61+
fi
5962
test -f dist/.nojekyll
6063
test -f dist/oauth/callback/huggingface/index.html
6164
test -f dist/generated/offline_quality_fixture.json

0 commit comments

Comments
 (0)