Skip to content

feat!: implement new UI (#32) #49

feat!: implement new UI (#32)

feat!: implement new UI (#32) #49

Workflow file for this run

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