Fix subject search counts #40
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy to VPS | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Deploy via SSH | |
| uses: appleboy/ssh-action@v1 | |
| with: | |
| host: ${{ secrets.VPS_HOST }} | |
| username: root | |
| key: ${{ secrets.VPS_SSH_KEY }} | |
| script: | | |
| RELEASE_ROOT="$(mktemp -d /tmp/csk-release.XXXXXX)" | |
| git clone --depth 1 --branch main https://github.com/ieduer/cross-subject-knowledge.git "$RELEASE_ROOT" | |
| cd "$RELEASE_ROOT" | |
| chmod +x scripts/deploy_vps.sh | |
| RUNTIME_ROOT=/root/cross-subject-knowledge ./scripts/deploy_vps.sh |