mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-10-19 19:23:17 +01:00
Deploy API docs with the FastFront GitHub action
This commit is contained in:
committed by
Constantin Graf
parent
b46f015754
commit
510cb10cb9
14
.github/workflows/generate-api-docs.yml
vendored
14
.github/workflows/generate-api-docs.yml
vendored
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user