Skip to content

Commit

Permalink
fix: docs -> github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
hec7orci7o committed Jan 28, 2025
1 parent 52c804c commit 55924a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
paths:
- "./docs/**"
- "./openapi/**"
- "redocly.yaml"

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -39,6 +43,7 @@ jobs:
run: |
npm run docs:generate
RANDOM_HEX=$(openssl rand -hex 3)
echo "folder_name=$RANDOM_HEX" >> $GITHUB_ENV
mkdir -p ./$RANDOM_HEX
mv redoc-static.html ./$RANDOM_HEX/index.html
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"*.js": [
"npm run lint"
],
"openapi/**/*": [
"openapi/**/*.{yml,yaml,json,md}": [
"npm run docs:test"
]
}
Expand Down

0 comments on commit 55924a3

Please sign in to comment.