Skip to content

Commit

Permalink
Fix doc uploading
Browse files Browse the repository at this point in the history
  • Loading branch information
arximboldi committed Mar 25, 2024
1 parent f17194a commit 3853bd9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ jobs:
- run: nix-shell --run "cd build && cmake .."
- run: nix-shell --run "cd build && make docs"
- uses: shimataro/ssh-key-action@v2
if: github.ref == 'refs/heads/master'
if: github.repository_owner == 'arximboldi' && github.ref == 'refs/heads/master'
with:
key: ${{ secrets.SINUSOIDES_SSH_KEY }}
known_hosts: ${{ secrets.SINUSOIDES_KNOWN_HOSTS }}
- run: nix-shell --run "cd build && make upload-docs"
if: github.ref == 'refs/heads/master'
if: github.repository_owner == 'arximboldi' && github.ref == 'refs/heads/master'

check:
strategy:
Expand Down
9 changes: 2 additions & 7 deletions doc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,7 @@ add_custom_target(docs
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}")
add_dependencies(docs doxygen)

set(lager_ssh_method
ssh -p 5488
-o StrictHostKeyChecking=no)

add_custom_target(upload-docs
COMMAND
rsync -av -e \"${lager_ssh_method}\"
${CMAKE_CURRENT_SOURCE_DIR}/_build/html/*
[email protected]:public/lager/)
rsync -av ${CMAKE_CURRENT_SOURCE_DIR}/_build/html/*
[email protected]:/var/lib/syncthing/public/lager/)

0 comments on commit 3853bd9

Please sign in to comment.