-
-
Notifications
You must be signed in to change notification settings - Fork 8
55 lines (55 loc) · 1.55 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: "Build - API documentation"
on:
workflow_dispatch:
inputs:
developrun:
description: 'Develop run, true or false?'
required: true
default: 'true'
push:
branches:
- main
jobs:
build_docs:
name: BuildDocs
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP with Xdebug
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
extensions: >-
bcmath
curl
fileinfo
json
mbstring
- name: Install Composer dependencies
run: composer install --prefer-dist --no-interaction --no-progress --no-scripts
- name: Checkout websie
uses: actions/checkout@v4
with:
path: 'api-docs'
repository: 'firefly-iii/api-docs'
#
# "API documentation builder" token.
#
token: ${{ secrets.GIT_REPOS_TOKEN }}
- name: Build documentation
run: |
php build-api-docs.php
cd api-docs
git config user.name github-actions
git config user.email [email protected]
git add firefly-iii-*-v1.yaml
git add firefly-iii-*-v2.yaml
git add index.html
git commit -m "Update API documentation for Firefly III"
git push
env:
API_DESTINATION: ./api-docs
API_SERVER: https://demo.firefly-iii.org
IS_DEVELOP_RUN: ${{ github.event.inputs.developrun }}
API_ROOT: .