File tree Expand file tree Collapse file tree 1 file changed +13
-9
lines changed
Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change 11name : Update Docs
22on :
3- workflow_dispatch
3+ release :
4+ types : [published]
45
56jobs :
67 build :
78 runs-on : ubuntu-latest
89 steps :
910 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
10- - name : Checkout The PR
11+ - name : Checkout The Master
1112 uses : actions/checkout@v2
13+ with :
14+ ref : master
15+ fetch-depth : 1
1216
1317 - name : Build
1418 shell : bash
1519 run : |
1620 SOURCE=$(pwd)
1721 cd docs
22+ VERSION=$( basename ${GITHUB_REF} )
23+ echo "Version Being built: ${VERSION}"
1824 cat Doxyfile.in | \
19- sed s:' ${PROJECT_NAME}':' pdal-c': | \
20- sed s:' ${pdal-c_VERSION}':'v2.0.0': | \
21- sed s:' ${CMAKE_SOURCE_DIR}' :.: | \
22- sed s:' ${PDAL_INCLUDE_DIRS}' :NONE: \
25+ sed 's: ${PROJECT_NAME}: pdal-c:' | \
26+ sed 's: ${pdal-c_VERSION}: '$VERSION' :' | \
27+ sed 's: ${CMAKE_SOURCE_DIR}:.:' | \
28+ sed 's: ${PDAL_INCLUDE_DIRS}:NONE:' \
2329 > Doxyfile
2430
25- cat Doxyfile
26-
2731 - name : Run Doxygen
2832 uses :
mattnotmitt/[email protected] 2933 with :
3943 uses : ad-m/github-push-action@master
4044 with :
4145 github_token : ${{ secrets.GITHUB_TOKEN }}
42- branch : ${{ github.ref }}
46+ branch : master
4347
4448
4549
You can’t perform that action at this time.
0 commit comments