Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
ProFastCode committed Jul 13, 2024
1 parent dfebc6a commit ab5d2b2
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/generate-page-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,23 @@ jobs:
- name: Run Docker
run: |
docker-compose up -d
docker-compose up -d --build
- name: Wait run backend
run: |
util $(curl http://0.0.0.0:8000); do
sleep 1
done
- name: Create docs directory if it doesn't exist
run: |
if [ ! -d "docs" ]; then
mkdir -p docs
fi
- name: Fetch page docs
- name: Generate page docs
run: |
until $(curl -o docs/openapi.json --silent --fail http://0.0.0.0:8000/api/openapi.json); do
sleep 1
done
curl -o docs/openapi.json --silent --fail http://0.0.0.0:8000/api/openapi.json
curl -o docs/swagger.html --silent --fail http://0.0.0.0:8000/api/docs
sed 's:/api/openapi.json:openapi.json:g' docs/swagger.html > docs/index.html
Expand Down

0 comments on commit ab5d2b2

Please sign in to comment.