| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
name: API Reference |
| 11 |
|
| 12 |
|
| 13 |
on: [workflow_call] |
| 14 |
|
| 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 |