]> begriffs open source - cmsis/blob - .github/workflows/pack.yml
Update documentation for branch main
[cmsis] / .github / workflows / pack.yml
1 name: Build documentation and pack
2 on:
3   workflow_dispatch:
4   pull_request:
5   push:
6     branches: [main]
7   release:
8     types: [published]
9
10 concurrency:
11   group: ${{ github.workflow }}-${{ github.ref }}
12   cancel-in-progress: true
13   
14 permissions:
15   contents: read
16   pull-requests: write
17
18 jobs:
19   pack:
20     name: Generate pack
21     runs-on: ubuntu-22.04
22     steps:
23       - uses: actions/checkout@v4
24         with:
25           fetch-depth: 0
26
27       - name: Fetch tags
28         if: github.event_name == 'release'
29         run: |
30           git fetch --tags --force
31
32       - uses: Open-CMSIS-Pack/gen-pack-action@main
33         with:
34           doxygen-version: 1.9.6
35           packchk-version: 1.3.95
36           gen-doc-script: ./CMSIS/DoxyGen/gen_doc.sh
37           check-links-script: ./DoxyGen/check_links.sh
38           doc-path: ./CMSIS/Documentation/
39           gen-pack-script: ./gen_pack.sh --no-preprocess
40           gen-pack-output: ./output
41           gh-pages-branch: gh-pages