From 1289c3408f9d792278320e529ed8cf8e97f8e37e Mon Sep 17 00:00:00 2001 From: s950tx16wasr10 Date: Wed, 13 May 2026 11:23:41 +0400 Subject: [PATCH] ci: build-only workflow, drop SSH/rsync deploy steps The master agent handles actual deployment. CI's job is to verify the build is green and publish _site/ as an artifact. Drops the failing Install SSH key + Rsync to server steps that were waiting on secrets this repo never needed. Also: trigger on PRs (so build failures surface before merge), rename workflow + file to 'build', tighten concurrency group per-ref so PRs don't cancel each other. --- .github/workflows/build.yml | 31 +++++++++++++++++++++++++++++++ .github/workflows/deploy.yml | 36 ------------------------------------ 2 files changed, 31 insertions(+), 36 deletions(-) create mode 100644 .github/workflows/build.yml delete mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..a9140eb --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,31 @@ +name: build + +on: + push: + branches: [master] + pull_request: + workflow_dispatch: + +concurrency: + group: build-${{ github.ref }} + cancel-in-progress: true + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: '20' + cache: 'npm' + + - run: npm install --no-audit --no-fund + - run: npm run build + + - uses: actions/upload-artifact@v4 + with: + name: site + path: _site + retention-days: 7 diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index 08603d1..0000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: deploy - -on: - push: - branches: [master] - workflow_dispatch: - -concurrency: - group: deploy - cancel-in-progress: false - -jobs: - build-and-deploy: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - uses: actions/setup-node@v4 - with: - node-version: '20' - cache: 'npm' - - - run: npm install --no-audit --no-fund - - run: npm run build - - - name: Install SSH key - uses: shimataro/ssh-key-action@v2 - with: - key: ${{ secrets.DEPLOY_SSH_KEY }} - known_hosts: ${{ secrets.DEPLOY_KNOWN_HOSTS }} - - - name: Rsync to server - run: | - rsync -avz --delete \ - --exclude '.DS_Store' \ - _site/ "${{ secrets.DEPLOY_TARGET }}:/var/www/reduxstation/"