@@ -43,15 +43,15 @@ jobs:
4343 mkdir -p "$HOME/.ssh"
4444 echo "${{ secrets.KEY }}" > "$HOME/.ssh/key"
4545 chmod 600 "$HOME/.ssh/key"
46- rsync -rILvh -e "ssh -i $HOME/.ssh/key -o StrictHostKeyChecking=no" $GITHUB_WORKSPACE/_site/ "${{ secrets.USERNAME }}@chatmail.at:/var/www/html/staging.chatmail.at/docs/relays ${{ steps.prepare.outputs.prid }}/"
46+ rsync -rILvh -e "ssh -i $HOME/.ssh/key -o StrictHostKeyChecking=no" $GITHUB_WORKSPACE/_site/ "${{ secrets.USERNAME }}@chatmail.at:/var/www/html/staging.chatmail.at/doc/relay ${{ steps.prepare.outputs.prid }}/"
4747
4848 - name : " Post links to details"
4949 id : details
5050 if : steps.prepare.outputs.uploadtoserver
5151 run : |
5252 # URLs for API connection and uploads
5353 export GITHUB_API_URL="https://api.github.com/repos/chatmail/relay/statuses/${{ github.event.after }}"
54- export PREVIEW_LINK="https://staging.chatmail.at/docs/relays ${{ steps.prepare.outputs.prid }}/"
54+ export PREVIEW_LINK="https://staging.chatmail.at/doc/relay ${{ steps.prepare.outputs.prid }}/"
5555 # Post AppImage download link to check details
5656 export STATUS_DATA="{\"state\": \"success\", \
5757 \"description\": \"Preview the page here:\", \
6363 export GITHUB_API_URL="https://api.github.com/repos/chatmail/relay/issues/${{ steps.prepare.outputs.prid }}/comments"
6464 export RESPONSE=$(curl -L --header "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" --url "$GITHUB_API_URL" --header "content-type: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28")
6565 echo $RESPONSE > response
66- grep -v '"Check out the page preview at https://staging.chatmail.at/docs/relays ' response && echo "comment=true" >> $GITHUB_OUTPUT || true
66+ grep -v '"Check out the page preview at https://staging.chatmail.at/doc/relay ' response && echo "comment=true" >> $GITHUB_OUTPUT || true
6767 - name : " Post link to comments"
6868 if : steps.details.outputs.comment
6969 uses : actions/github-script@v7
7373 issue_number: context.issue.number,
7474 owner: context.repo.owner,
7575 repo: context.repo.repo,
76- body: "Check out the page preview at https://staging.chatmail.at/docs/relays ${{ steps.prepare.outputs.prid }}/"
76+ body: "Check out the page preview at https://staging.chatmail.at/doc/relay ${{ steps.prepare.outputs.prid }}/"
7777 })
0 commit comments