From cd12f969da32a21cf6eceff6b391dc01fc01de2d Mon Sep 17 00:00:00 2001 From: Johnnybegood90 Date: Tue, 10 Mar 2026 09:20:02 +0100 Subject: [PATCH] Add beta deployment pipeline --- .github/workflows/deploy.yml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index cbc84b0..1ca172b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -4,13 +4,15 @@ on: push: branches: - main + - beta jobs: - deploy: + deploy-main: + if: github.ref == 'refs/heads/main' runs-on: ubuntu-latest steps: - - name: Deploy via SSH + - name: Deploy production + demo uses: appleboy/ssh-action@v1 with: host: ${{ secrets.SERVER_HOST }} @@ -24,3 +26,19 @@ jobs: cd ${{ secrets.DEMO_DEPLOY_PATH }} git fetch origin git reset --hard origin/main + + deploy-beta: + if: github.ref == 'refs/heads/beta' + runs-on: ubuntu-latest + + steps: + - name: Deploy beta + uses: appleboy/ssh-action@v1 + with: + host: ${{ secrets.SERVER_HOST }} + username: ${{ secrets.SERVER_USER }} + key: ${{ secrets.SERVER_SSH_KEY }} + script: | + cd ${{ secrets.BETA_DEPLOY_PATH }} + git fetch origin + git reset --hard origin/beta