From e17670ea83e2820693fa826bfd04a3bf6491e33c Mon Sep 17 00:00:00 2001 From: Cyper Date: Sat, 5 Jul 2025 20:55:21 -0400 Subject: [PATCH] Simplified deploy script --- .gitea/workflows/deploy.yaml | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 06a868b..7878216 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -10,29 +10,15 @@ jobs: runs-on: host steps: - - name: Skip deployment if commit starts with "nodeploy" - id: skip_check - run: | - COMMIT_MSG="${{ event.head_commit.message }}" - echo "Commit message: $COMMIT_MSG" - if [[ "$COMMIT_MSG" == nodeploy* ]]; then - echo "should_deploy=false" >> $GITHUB_ENV - else - echo "should_deploy=true" >> $GITHUB_ENV - fi - - name: Checkout code - if: env.should_deploy == 'true' uses: actions/checkout@v3 - name: Build site - if: env.should_deploy == 'true' run: | npm run build echo "Site built successfully." - name: Deploy folder - if: env.should_deploy == 'true' run: | echo "Cleaning old site files..." rm -rf /var/sites/cy.cyper.cc/www/html/*