fix: use self-hosted runner for CI/CD
Some checks failed
Auto Deploy / build-and-deploy (push) Failing after 6s

This commit is contained in:
2026-03-02 16:39:21 +08:00
parent aa2f07de41
commit 929cb1966b

View File

@@ -9,29 +9,17 @@ on:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Install dependencies
run: pnpm install
- name: Build project
run: pnpm build
- name: Deploy to server
- name: Build and Deploy
run: |
cd /tmp
rm -rf tashow-build
git clone -b ${{ github.ref_name }} http://gitea.tashowz.com/tashow/tashow-manager.git tashow-build
cd tashow-build
pnpm install
pnpm build
rsync -av --delete dist/ /home/1panel/www/sites/admin.petshy.tashowz.com/index/
rm -rf /tmp/tashow-build
echo "Deployed successfully!"