From 662eb4606796ba3dee258e7ced56059fd34edc4a Mon Sep 17 00:00:00 2001 From: AV77web Date: Tue, 14 Jul 2026 16:19:29 +0200 Subject: [PATCH] Deploy: niente artifact v4, SCP dist dopo build CI --- .github/workflows/deploy.yml | 26 ++++++-------------------- 1 file changed, 6 insertions(+), 20 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 466b2b0..f810312 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -7,34 +7,20 @@ on: workflow_dispatch: jobs: - build: + deploy: runs-on: ubuntu-latest + timeout-minutes: 20 steps: - uses: https://github.com/actions/checkout@v4 + - uses: https://github.com/actions/setup-node@v4 with: node-version: "20" - - run: npm ci --prefer-offline - - run: npm run build + + - name: Build frontend + run: npm ci --prefer-offline && npm run build env: VITE_API_URL: https://esameits24-26backend.andreavillari.it - - uses: https://github.com/actions/upload-artifact@v4 - with: - name: frontend-dist - path: dist/ - retention-days: 1 - - deploy: - needs: build - runs-on: ubuntu-latest - timeout-minutes: 15 - steps: - - uses: https://github.com/actions/checkout@v4 - - - uses: https://github.com/actions/download-artifact@v4 - with: - name: frontend-dist - path: dist - uses: https://github.com/appleboy/scp-action@v0.1.7 with: