Skip to content

Commit

Permalink
docs: Upload to ref_type subdirectory
Browse files Browse the repository at this point in the history
Signed-off-by: Andrej Rode <[email protected]>
  • Loading branch information
noc0lour committed Feb 24, 2024
1 parent 6ef15a4 commit 8d378f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/publish_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ jobs:
- name: Upload via SSH
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
run: 'tar -cz build/html/ | ssh ${{ secrets.SSH_USER }}@${{ secrets.SSH_SERVER }} "mkdir -p /www/$(date +%Y.%m.%d); cd /www/$(date +%Y.%m.%d); tar --strip-components=1 -xz; rm /www/live; cd /www; ln -sf $(date +%Y.%m.%d) live;"'
TARGET_DIR: "${{ github.ref_type }}/${{ github.ref_name }}"
run: 'tar -cz build/html/ | ssh ${{ secrets.SSH_USER }}@${{ secrets.SSH_SERVER }} "mkdir -p /www/${{ env.TARGET_DIR }}/$(date +%Y.%m.%d); cd /www/${{ env.TARGET_DIR }}/$(date +%Y.%m.%d); tar --strip-components=2 -xz; rm /www/${{ env.TARGET_DIR }}/live; cd /www/${{ env.TARGET_DIR }}/$(date +%Y.%m.%d); ln -sf $(date +%Y.%m.%d) live;"'
- uses: actions/upload-artifact@v4
with:
name: volk_docs
Expand Down

0 comments on commit 8d378f1

Please sign in to comment.