Skip to content

Commit e437277

Browse files
runettePaul Harwood
authored andcommitted
Fix Auto Docs Update Job
1 parent 81bea9c commit e437277

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

.github/workflows/update_docs.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,33 @@
11
name: Update Docs
22
on:
3-
workflow_dispatch
3+
release:
4+
types: [published]
45

56
jobs:
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
18-
VERSION=$(basename ${GITHUB_REF})
19-
echo "Version Being built: ${GITHUB_REF}"
22+
VERSION=$( basename ${GITHUB_REF} )
23+
echo "Version Being built: ${VERSION}"
2024
cat Doxyfile.in | \
21-
sed s:'${PROJECT_NAME}':'pdal-c': | \
22-
sed s:'${pdal-c_VERSION}': $GITHUB_REF: | \
23-
sed s:'${CMAKE_SOURCE_DIR}':.: | \
24-
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:' \
2529
> Doxyfile
2630
27-
cat Doxyfile
28-
2931
- name: Run Doxygen
3032
uses: mattnotmitt/[email protected]
3133
with:
@@ -41,7 +43,7 @@ jobs:
4143
uses: ad-m/github-push-action@master
4244
with:
4345
github_token: ${{ secrets.GITHUB_TOKEN }}
44-
branch: ${{ github.ref }}
46+
branch: master
4547

4648

4749

0 commit comments

Comments
 (0)