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