Skip to content

Commit 522b2d0

Browse files
authored
Merge pull request #13 from ViRGIS-Team/master
Fix the Auto Docs Update
2 parents f3892c8 + e437277 commit 522b2d0

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

.github/workflows/update_docs.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +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
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:
@@ -39,7 +43,7 @@ jobs:
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

0 commit comments

Comments
 (0)