From ab9baf03223092fc4b34de6d8782af80a39225db Mon Sep 17 00:00:00 2001 From: Aria Date: Sun, 11 May 2025 21:37:34 +1000 Subject: [PATCH 1/2] specify more exact node version --- .forgejo/workflows/deploy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml index 60511aa..166f9c5 100644 --- a/.forgejo/workflows/deploy.yaml +++ b/.forgejo/workflows/deploy.yaml @@ -28,7 +28,7 @@ jobs: - name: Install Node.js uses: https://github.com/actions/setup-node@v4 with: - node-version: 23 + node-version: 23.11.0 cache: 'pnpm' - name: Install dependencies From 31037308e87cd23e4558f0b17fc67ee65cf92fde Mon Sep 17 00:00:00 2001 From: Aria Date: Sun, 11 May 2025 21:40:58 +1000 Subject: [PATCH 2/2] Continue is fail instead of if failed() --- .forgejo/workflows/deploy.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml index 166f9c5..5fe81d5 100644 --- a/.forgejo/workflows/deploy.yaml +++ b/.forgejo/workflows/deploy.yaml @@ -38,16 +38,17 @@ jobs: run: pnpm run build-action - name: Create folder if not exists + continue-on-error: true run: | ssh -i ~/.ssh/aria-coffee-deploy ${{ vars.SERVER_USER }}@${{ vars.SERVER_HOST }} "mkdir -p /var/www/Aria/" - name: Clear old backup - if: success() || failure() + continue-on-error: true run: | ssh -i ~/.ssh/aria-coffee-deploy ${{ vars.SERVER_USER }}@${{ vars.SERVER_HOST }} "[ -d "/var/www/Aria/dist-old" ] && rm -r /var/www/Aria/dist-old" - name: Backup current install - if: success() || failure() + continue-on-error: true run: | ssh -i ~/.ssh/aria-coffee-deploy ${{ vars.SERVER_USER }}@${{ vars.SERVER_HOST }} "[ -d "/var/www/Aria/dist" ] && mv /var/www/Aria/dist /var/www/Aria/dist-old"