Skip to content

Commit

Permalink
Change location to /docs (#10)
Browse files Browse the repository at this point in the history
Co-authored-by: Piotr Chmielnik <[email protected]>
  • Loading branch information
pchmielnik and Piotr Chmielnik authored Mar 8, 2024
1 parent c34ffbc commit 96ac22c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/publish_site.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish Website eoed-docs.eliatra.com
name: Publish Website

on:
workflow_dispatch:
Expand All @@ -8,7 +8,9 @@ on:
pull_request:

env:
WEBSITE_URL: 'eoed-docs.eliatra.com'
WEBSITE_URL: 'eliatra.com'
UPLOAD_DIR: 'eod'


jobs:
setup:
Expand Down Expand Up @@ -74,7 +76,8 @@ jobs:
exit 1
fi
echo "Start SFTP upload version: $WEBSITE_VERSION"
lftp -u ${{ secrets.SFTP_USERNAME }}, -e "set sftp:connect-program 'ssh -a -x -o StrictHostKeyChecking=no'; mkdir -p /var/www/${{ env.WEBSITE_URL }}/html/$WEBSITE_VERSION; mirror --reverse --parallel=20 --verbose _site/ /var/www/${{ env.WEBSITE_URL }}/html/$WEBSITE_VERSION/; quit" sftp://${{ secrets.SFTP_SERVER }}
lftp -u ${{ secrets.SFTP_USERNAME }}, -e "set sftp:connect-program 'ssh -a -x -o StrictHostKeyChecking=no'; mkdir -p /var/www/${{ env.UPLOAD_DIR }}/html/$WEBSITE_VERSION; mirror --reverse --parallel=20 --verbose _site/ /var/www/${{ env.UPLOAD_DIR }}/html/$WEBSITE_VERSION/; quit" sftp://${{ secrets.SFTP_SERVER }}
post_deploy:
needs: deploy
Expand Down

0 comments on commit 96ac22c

Please sign in to comment.