Deploy API docs with the FastFront GitHub action

This commit is contained in:
Constantin Graf
2026-10-19 16:18:40 +02:00
committed by Constantin Graf
parent b46f015754
commit 510cb10cb9

View File

@@ -3,6 +3,7 @@ on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
@@ -57,10 +58,9 @@ jobs:
name: api-docs.json
path: build/api-docs.json
- name: "Download Fastfront CLI"
run: curl https://fastfront-cli.s3.fr-par.scw.cloud/fastfront-cli.phar -o fastfront-cli.phar
- name: "Deploy with Fastfront"
run: php fastfront-cli.phar deploy 9beab6cf-f459-446b-85f1-38ec007cf457 ./build
env:
FASTFRONT_API_KEY: ${{ secrets.FASTFRONT_API_DOCS_API_KEY }}
- name: "Deploy with FastFront"
uses: fastfront-io/deploy-action@v0.0.1
with:
folder: './build'
environment: ${{ vars.FASTFRONT_API_DOCS_STAGE }}
api_key: ${{ secrets.FASTFRONT_API_DOCS_STAGE_KEY }}