File tree Expand file tree Collapse file tree 1 file changed +61
-0
lines changed Expand file tree Collapse file tree 1 file changed +61
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build and Publish
2+
3+ on :
4+ # Allows running this workflow manually from the Actions tab
5+ workflow_dispatch :
6+ inputs :
7+ version :
8+ description : " Version of Slicer documentation to build and publish"
9+ required : true
10+
11+ jobs :
12+ build-and-publish :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - name : Collect Inputs
16+ id : collect_inputs
17+ run : |
18+ echo "EVENT_NAME [$EVENT_NAME]"
19+ if [[ "$EVENT_NAME" == "workflow_dispatch" ]]; then
20+ version=${{ github.event.inputs.version }}
21+ else
22+ echo "::error ::Unsupported EVENT_NAME [$EVENT_NAME]"
23+ exit 1
24+ fi
25+ echo "version=$version" >> $GITHUB_OUTPUT
26+ env :
27+ EVENT_NAME : ${{ github.event_name }}
28+
29+ - uses : actions/checkout@v4
30+ with :
31+ ref : gh-pages
32+ path : gh-pages
33+
34+ - uses : actions/checkout@v4
35+ with :
36+ repository : jcfr/Slicer
37+ path : Slicer
38+ ref : speedup-doxygen-generation # ${{ steps.collect_inputs.outputs.version }}
39+
40+ - uses : ssciwr/doxygen-install@v1
41+ with :
42+ version : " 1.10.0"
43+
44+ - uses : actions/setup-python@v5
45+ with :
46+ python-version : ' 3.13'
47+ cache : ' pip'
48+
49+ - name : Install slicer-apidocs-builder
50+ run : |
51+ pip install git+https://github.com/Slicer/slicer-apidocs-builder.git@1744509e91fa66186d34e4c6968ee684131c51d1
52+
53+ - name : Build
54+ run : |
55+ slicer-apidocs-builder \
56+ --slicer-repo-dir Slicer \
57+ --slicer-repo-branch $SLICER_BRANCH
58+ --skip-publish
59+ env :
60+ SLICER_BRANCH : speedup-doxygen-generation # ${{ steps.collect_inputs.outputs.version }}
61+
You can’t perform that action at this time.
0 commit comments