Skip to content

Commit 9d8fdc6

Browse files
authored
Merge pull request #97 from hmakelin/hm/docs-build-2
Docs workflow updates
2 parents 57fc484 + 8583aa5 commit 9d8fdc6

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

.github/workflows/build_and_deploy_sphinx_docs.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,30 +13,31 @@ on:
1313
jobs:
1414
build:
1515
runs-on: ubuntu-20.04
16-
container: ghcr.io/${{ github.repository }}:latest
1716
defaults:
1817
run:
1918
shell: bash
2019
steps:
2120
- name: Build Sphinx docs
2221
run: |
23-
make docs
22+
mkdir -p docs/_build
23+
docker run ghcr.io/${{ github.repository }}:latest make docs
24+
docker cp $(docker ps -q -l):/opt/colcon_ws/src/gisnav/docs/_build docs
2425
2526
- name: Install node
2627
run: |
27-
apt-get update
28-
apt-get -y install curl
28+
sudo apt-get update
29+
sudo apt-get -y install curl
2930
curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
30-
apt-get install -y nodejs
31+
sudo apt-get install -y nodejs
3132
3233
- name: Setup pages
3334
uses: actions/configure-pages@v1
3435

35-
- name: Make "Upload pages artifact" step work with containers
36-
run: |
37-
mkdir -p ${{runner.temp}}
38-
mkdir -p /__w/_temp
39-
ln -s ${{runner.temp}}/artifact.tar /__w/_temp/artifact.tar
36+
#- name: Make "Upload pages artifact" step work with containers
37+
# run: |
38+
# mkdir -p ${{runner.temp}}
39+
# mkdir -p /__w/_temp
40+
# ln -s ${{runner.temp}}/artifact.tar /__w/_temp/artifact.tar
4041

4142
- name: Upload pages artifact
4243
uses: actions/upload-pages-artifact@v1

.github/workflows/push_gisnav_images.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525
uses: actions/checkout@v3
2626
with:
2727
path: colcon_ws/src/gisnav
28+
fetch-depth: 0 # need for building docs (conf.py git describe)
29+
fetch-tags: True # need for building docs (conf.py git describe)
2830

2931
- name: Login to GHCR
3032
uses: docker/login-action@v2

0 commit comments

Comments
 (0)