Update server.yml

This commit is contained in:
ereti
2022-07-14 00:35:54 +01:00
committed by GitHub
parent 8211fcb4bb
commit 0736e81bbd
+8 -4
View File
@@ -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 }}