name: 部署 admin-ui 到 K3s

on:
  push:
    branches:
      - main

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - name: 拉取代码
        uses: actions/checkout@v4

      - name: 部署到 K3s
        run: |
          kubectl apply -f k8s/
          kubectl rollout restart deployment admin-ui