Skip to content

Commit 6b275dc

Browse files
committed
upload to the correct folder
1 parent abe31d7 commit 6b275dc

File tree

1 file changed

+24
-40
lines changed

1 file changed

+24
-40
lines changed

.github/workflows/pylibfranka-docs.yml

Lines changed: 24 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -38,58 +38,42 @@ jobs:
3838
cd /workspace/pylibfranka
3939
./scripts/setup_dependencies.sh
4040
41-
- name: Build and Install pylibfranka
41+
- name: Build and Install pylibfranka and Generate Docs
4242
uses: addnab/docker-run-action@v3
4343
with:
4444
image: pylibfranka:latest
4545
options: -v ${{ github.workspace }}:/workspace
4646
run: |
4747
cd /workspace
48-
# Set up environment for building against local libfranka
49-
export LD_LIBRARY_PATH="/workspace/build-release:${LD_LIBRARY_PATH:-}"
5048
export PATH="$HOME/.local/bin:$PATH"
49+
export LC_ALL=C.UTF-8
50+
export LANG=C.UTF-8
5151
52+
# Install pylibfranka
5253
pip3 install .
53-
cd pylibfranka
54-
55-
VERSION=$(python3 -c "import pylibfranka; print(pylibfranka.__version__)")
56-
57-
echo "Building documentation for version: $VERSION"
58-
59-
60-
# - name: Build Sphinx documentation
61-
# uses: addnab/docker-run-action@v3
62-
# with:
63-
# image: pylibfranka:latest
64-
# options: -v ${{ github.workspace }}:/workspace
65-
# shell: bash
66-
# run: |
67-
# cd /workspace/pylibfranka/docs
6854
69-
# # Set up environment
70-
# export PATH="$HOME/.local/bin:$PATH"
71-
# export LD_LIBRARY_PATH="/workspace/build-release:${LD_LIBRARY_PATH:-}"
72-
# export LC_ALL=C.UTF-8
73-
# export LANG=C.UTF-8
55+
# Move to docs directory
56+
cd pylibfranka/docs
7457
75-
# pip3 install -r requirements.txt --user
58+
# Install Sphinx requirements
59+
pip3 install -r requirements.txt --user
7660
77-
# VERSION=$(python3 -c "import pylibfranka; print(pylibfranka.__version__)")
61+
# Get version from pylibfranka
62+
VERSION=$(python3 -c "import pylibfranka; print(pylibfranka.__version__)")
63+
echo "Building documentation for version: $VERSION"
7864
79-
# echo "Building documentation for version: $VERSION"
80-
81-
# make clean
82-
# make html
65+
# Build documentation
66+
make clean
67+
make html
8368
84-
# # Prepare output directory with pylibfranka subfolder
85-
# mkdir -p /workspace/docs_output/pylibfranka/${VERSION}
86-
# cp -r _build/html/* /workspace/docs_output/pylibfranka/${VERSION}/
87-
88-
# - name: Deploy to GitHub Pages
89-
# uses: peaceiris/actions-gh-pages@v3
90-
# with:
91-
# github_token: ${{ secrets.GITHUB_TOKEN }}
92-
# publish_branch: gh-pages
93-
# publish_dir: docs_output
94-
# keep_files: true
69+
# Prepare output directory with pylibfranka subfolder
70+
mkdir -p /workspace/docs_output/pylibfranka/${VERSION}
71+
cp -r _build/html/* /workspace/docs_output/pylibfranka/${VERSION}/
9572
73+
- name: Deploy to GitHub Pages
74+
uses: peaceiris/actions-gh-pages@v3
75+
with:
76+
github_token: ${{ secrets.GITHUB_TOKEN }}
77+
publish_branch: gh-pages
78+
publish_dir: docs_output
79+
keep_files: true

0 commit comments

Comments
 (0)