From dd22e007d8817f96558afd8ea85887e966909505 Mon Sep 17 00:00:00 2001 From: ereti <43418802+ereti@users.noreply.github.com> Date: Wed, 13 Jul 2022 23:46:59 +0100 Subject: [PATCH] Create client.yml --- .github/workflows/client.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/client.yml diff --git a/.github/workflows/client.yml b/.github/workflows/client.yml new file mode 100644 index 000000000..b02578d45 --- /dev/null +++ b/.github/workflows/client.yml @@ -0,0 +1,30 @@ +name: deploy + +on: + push: + branches: [master, develop] + paths: + - "client/**" + workflow_dispatch: + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Deploy to staging + if: github.ref == 'refs/heads/develop' + uses: appleboy/ssh-action@1a8b3784eaa665f677fa114edd5683bb6a6bfaa8 + with: + host: ${{ secrets.TACHI_HOST }} + username: tachi + key: ${{ secrets.TACHI_KEY }} + 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