]> begriffs open source - cmsis-freertos/blob - .github/workflows/build.yaml
Add gh-pages deployment workflow (#75)
[cmsis-freertos] / .github / workflows / build.yaml
1 name: Build documentation and pack
2 on:
3   workflow_dispatch:
4   push:
5     branches: [ main ]
6   pull_request:
7     branches: [ main ]
8   release:
9     types: [published]
10 jobs:
11   pack:
12     name: Generate pack
13     runs-on: ubuntu-20.04
14     steps:
15       - uses: actions/checkout@v3
16         with:
17           fetch-depth: 0
18
19       - name: Fetch tags
20         if: ${{ github.event_name == 'release' }}
21         run: |
22           git fetch --tags --force
23
24       - uses: Open-CMSIS-Pack/gen-pack-action@main
25         with:
26           doxygen-version: 1.9.2                                  # default
27           packchk-version: 1.3.95                                 # default
28           gen-doc-script: ./DoxyGen/gen_doc.sh                    # skipped by default
29           check-links-script: ./DoxyGen/check_links.sh            # skipped by default
30           doc-path: ./Documentation/html                          # skipped by default
31           gen-pack-script: ./gen_pack.sh --no-preprocess          # skipped by default
32           gen-pack-output: ./output                               # skipped by default
33           gh-pages-branch: gh-pages                               # default
34           gh-pages-deploy: gh-pages.yml                           # default, use gh-pages.yml