summaryrefslogtreecommitdiffstats
path: root/.github/workflows/publish-workflow.yaml
diff options
context:
space:
mode:
authorHeiner Lohaus <hlohaus@users.noreply.github.com>2024-11-24 22:20:08 +0100
committerHeiner Lohaus <hlohaus@users.noreply.github.com>2024-11-24 22:20:08 +0100
commit2114520ed2d5912b7027a99b013d27104e0f5079 (patch)
treec6fb7de021faba2997e4694940586032e7d8c523 /.github/workflows/publish-workflow.yaml
parentUpdate Dockerfile-slim (diff)
downloadgpt4free-2114520ed2d5912b7027a99b013d27104e0f5079.tar
gpt4free-2114520ed2d5912b7027a99b013d27104e0f5079.tar.gz
gpt4free-2114520ed2d5912b7027a99b013d27104e0f5079.tar.bz2
gpt4free-2114520ed2d5912b7027a99b013d27104e0f5079.tar.lz
gpt4free-2114520ed2d5912b7027a99b013d27104e0f5079.tar.xz
gpt4free-2114520ed2d5912b7027a99b013d27104e0f5079.tar.zst
gpt4free-2114520ed2d5912b7027a99b013d27104e0f5079.zip
Diffstat (limited to '')
-rw-r--r--.github/workflows/publish-workflow.yaml17
1 files changed, 17 insertions, 0 deletions
diff --git a/.github/workflows/publish-workflow.yaml b/.github/workflows/publish-workflow.yaml
index be479f66..49ff03a5 100644
--- a/.github/workflows/publish-workflow.yaml
+++ b/.github/workflows/publish-workflow.yaml
@@ -6,6 +6,23 @@ on:
- '**'
jobs:
+ openapi:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - name: Set up Python 3.8
+ uses: actions/setup-python@v4
+ with:
+ python-version: "3.8"
+ cache: 'pip'
+ - name: Install requirements
+ run: pip install fastapi uvicorn python-multipart
+ - name: Generate openapi.json
+ run: |
+ python -m etc.tool.openapi
+ - uses: actions/upload-artifact@v4
+ with:
+ path: openapi.json
publish:
runs-on: ubuntu-latest
steps: