From 0736e81bbd641875fd52a8eb188e853aa4aaf554 Mon Sep 17 00:00:00 2001 From: ereti <43418802+ereti@users.noreply.github.com> Date: Thu, 14 Jul 2022 00:35:54 +0100 Subject: [PATCH] Update server.yml --- .github/workflows/server.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/server.yml b/.github/workflows/server.yml index 9d626ba25..e12a59f4a 100644 --- a/.github/workflows/server.yml +++ b/.github/workflows/server.yml @@ -2,12 +2,16 @@ name: Server Test, Build, & Deploy on: push: - branches: [staging] + branches: + - "staging" + - "release/*" paths: - "server/**" - "common/**" pull_request: - branches: [staging] + branches: + - "staging" + - "release/*" paths: - "server/**" - "common/**" @@ -87,7 +91,7 @@ jobs: run: echo "BRANCH_TAG=develop" >> $GITHUB_ENV - name: Stable tag - if: github.ref == 'refs/heads/notrealnotreal" + if: startsWith(github.ref, "refs/heads/release") run: echo "BRANCH_TAG=stable" >> $GITHUB_ENV - name: Version tag @@ -125,7 +129,7 @@ jobs: script: tachi-server-deploy -s - name: Deploy to live - if: github.ref == 'refs/heads/notrealnotreal' + if: startsWith(github.ref, "refs/heads/release") uses: appleboy/ssh-action@1a8b3784eaa665f677fa114edd5683bb6a6bfaa8 with: host: ${{ secrets.TACHI_HOST }}