chore: fix README to include forks instead of cloning main repo #39
Workflow file for this run
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 GitHub Pages | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - documentation | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Deploy to VPS via SSH | |
| uses: appleboy/ssh-action@v1.0.3 | |
| with: | |
| host: ${{ secrets.SERVER_HOST }} | |
| username: ${{ secrets.SERVER_USERNAME }} | |
| key: ${{ secrets.SERVER_SSH_KEY }} | |
| port: ${{ secrets.SERVER_PORT }} | |
| script: | | |
| export PATH=$PATH:/root/.bun/bin | |
| source ~/.bashrc 2>/dev/null || true | |
| cd /opt/website/ | |
| git pull origin ${{ github.ref_name }} | |
| BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD) | |
| COMMIT_HASH=$(git rev-parse --short HEAD) | |
| echo "{\"branch\":\"$BRANCH_NAME\",\"commit\":\"$COMMIT_HASH\"}" > public/git-info.json | |
| bun run build | |
| pm2 restart website |