From ed20c353968b89a9d92b08691461313691d574d2 Mon Sep 17 00:00:00 2001 From: alisaza Date: Sun, 13 Sep 2026 14:56:04 +0330 Subject: [PATCH] Simplify deploy workflow to a single job for act_runner. --- .gitea/workflows/deploy.yml | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index d7911eb..81fa6a5 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -5,13 +5,9 @@ on: branches: [main] workflow_dispatch: -concurrency: - group: deploy-telegram-relay - cancel-in-progress: true - jobs: - test: - name: Typecheck and test + test-and-deploy: + name: Test and deploy runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -20,16 +16,14 @@ jobs: with: node-version: '20' - - run: npm ci - - run: npm run typecheck - - run: npm test + - name: Install + run: npm ci - deploy: - name: Deploy to VPS - needs: test - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 + - name: Typecheck + run: npm run typecheck + + - name: Test + run: npm test - name: Deploy over SSH env: