mirror of
https://github.com/zkldi/Tachi.git
synced 2026-09-30 10:58:07 +03:00
Update server.yml
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user