Skip to content

Commit

Permalink
Upload docs to VPS via SFTP (PhotonVision#1235)
Browse files Browse the repository at this point in the history
Still in testing, might break our docs for now
  • Loading branch information
mcm001 authored Feb 13, 2024
1 parent 1c0d926 commit 6a2d83e
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,25 +68,19 @@ jobs:
release:
needs: [build-client, run_docs]

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-22.04
steps:

# Download literally every single artifact.
- uses: actions/download-artifact@v4

- run: find .

- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
- name: copy file via ssh password
uses: appleboy/[email protected]
with:
# Upload entire repository
path: '.'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
host: ${{ secrets.WEBMASTER_SSH_HOST }}
username: ${{ secrets.WEBMASTER_SSH_USERNAME }}
password: ${{ secrets.WEBMASTER_SSH_KEY }}
port: ${{ secrets.WEBMASTER_SSH_PORT }}
source: "*"
target: /var/www/html/photonvision-docs/

0 comments on commit 6a2d83e

Please sign in to comment.