diff --git a/.github/workflows/website.yaml b/.github/workflows/website.yaml index 544f173..a5bf09e 100644 --- a/.github/workflows/website.yaml +++ b/.github/workflows/website.yaml @@ -57,24 +57,13 @@ jobs: bun wasm:bindgen ../binaryen/bin/wasm-opt -Os ./pkg/duper_website_bg.wasm -o ./pkg/duper_website_bg.wasm bun run build - - name: Upload artifact - if: ${{ github.ref == 'refs/heads/main' }} - uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0 - with: - path: ./duper_website/docs/.vitepress/dist - - deploy: - name: Deploy - runs-on: ubuntu-latest - if: ${{ github.ref == 'refs/heads/main' }} - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - needs: build - permissions: - pages: write - id-token: write - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5 + - name: Deploy to Sandhole + if: github.ref == 'refs/heads/main' + uses: up9cloud/action-rsync@e5f52e6a78755fa0ddbfd2d52f61de0490661665 # master + env: + SOURCE: ./duper_website/docs/.vitepress/dist/ + HOST: ${{ secrets.WEBSITE_SSH_HOST }} + PORT: ${{ secrets.WEBSITE_SSH_PORT }} + USER: ${{ secrets.WEBSITE_SSH_USER }} + KEY: ${{ secrets.WEBSITE_SSH_KEY }} + TARGET: ${{ secrets.WEBSITE_SSH_TARGET }}