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 }}