Update deploy.yml

This commit is contained in:
ereti
2021-11-01 04:09:01 +00:00
committed by zkldi
parent 30e2661406
commit a1a6782cc9
+11 -9
View File
@@ -9,18 +9,20 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Staging selection
- name: Deploy to staging
if: github.ref == 'refs/heads/develop'
run: echo "SCRIPT=tachi-client-deploy -s" >> $GITHUB_ENV
- name: Live selection
if: github.ref == 'refs/heads/master'
run: echo "SCRIPT=tachi-client-deploy" >> $GITHUB_ENV
- name: Run deploy script on server
uses: appleboy/ssh-action@1a8b3784eaa665f677fa114edd5683bb6a6bfaa8
with:
host: ${{ secrets.TACHI_HOST }}
username: tachi
key: ${{ secrets.TACHI_KEY }}
script: ${{ env.SCRIPT }}
script: tachi-client-deploy -s
- name: Deploy to live
if: github.ref == 'refs/heads/master'
uses: appleboy/ssh-action@1a8b3784eaa665f677fa114edd5683bb6a6bfaa8
with:
host: ${{ secrets.TACHI_HOST }}
username: tachi
key: ${{ secrets.TACHI_KEY }}
script: tachi-client-deploy