Debian Codegraph @

.github/workflows/api-reference.yml

raw symbols SCIP
1 # ----------------------------------------------------------------------------
2 # GitHub Action workflow to build API reference using PasDoc
3 # and store it as an artifact.
4 #
5 # The scripts on https://castle-engine.io/
6 # will notice it and deploy new version on
7 # https://castle-engine.io/apidoc/html/index.html .
8 # ----------------------------------------------------------------------------
9
10 name: API Reference
11
12 # Called by everything.yml
13 on: [workflow_call]
14 #on: [push, pull_request]
15
16 defaults:
17 run:
18 shell: bash
19
20 jobs:
21 build_api_reference:
22 name: API Reference
23 runs-on: ubuntu-latest
24 container: kambi/castle-engine-cloud-builds-tools:cge-none
25 steps:
26 - uses: actions/checkout@v4
27 - name: Make API Reference
28 run: make clean html -C doc/pasdoc/
29 - name: Pack API Reference
30 run: |
31 cd doc/
32 zip -r castle-engine-only-api-reference.zip reference
33 mv castle-engine-only-api-reference.zip ../
34 - name: Archive Artifacts
35 uses: actions/upload-artifact@v4
36 with:
37 name: api-reference
38 path: castle-engine-only-api-reference.zip
39 if-no-files-found: error