Skip to content

fix

fix #7

Workflow file for this run

name: Generate page docs
on:
push:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build Docker image
run: |
cp .env.dist .env
docker-compose build
- name: Run FastAPI in Docker
run: |
docker-compose up -d
sleep 5
- name: Fetch /docs page
run: |
until $(curl -o /docs/index.html --silent --head --fail http://0.0.0.0:8000/api/docs); do
printf '.'
sleep 1
done
- name: Commit index.html
run: |
git config --global user.name 'GitHub Actions'
git config --global user.email '<>'
git add index.html
git commit -m "Update docs page" || exit 0
git push