From 8d378f119b0c430514bf1032527ea55cd37e2e18 Mon Sep 17 00:00:00 2001 From: Andrej Rode Date: Sat, 24 Feb 2024 16:48:51 +0100 Subject: [PATCH] docs: Upload to ref_type subdirectory Signed-off-by: Andrej Rode --- .github/workflows/publish_docs.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish_docs.yml b/.github/workflows/publish_docs.yml index 8d420e95..4500b2e8 100644 --- a/.github/workflows/publish_docs.yml +++ b/.github/workflows/publish_docs.yml @@ -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