Skip to content

Commit

Permalink
Update publish_docs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
noc0lour authored Feb 24, 2024
1 parent 522a500 commit d8f0a79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/publish_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Upload via SSH
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
TARGET_DIR: "${{ GITHUB_REF_TYPE }}/${{ GITHUB_REF_NAME }}"
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:
Expand Down

0 comments on commit d8f0a79

Please sign in to comment.