diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6a60a46..15f86d1 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -60,4 +60,18 @@ jobs: - name: Create needed files run: echo '{"tester":"DEMO_KEY"}' > secret.json - name: Docker Compose - run: docker-compose up -d \ No newline at end of file + run: docker-compose up -d + deployBeta: + needs: + - Docker Image CI + name: Deploy Beta + runs-on: ubuntu-latest + if: {{ github.ref == 'ref/head/master' && github.event_name == 'push' }} + steps: + - name: Deploy + uses: appleboy/ssh-action@master + with: + host: ${{ secrets.HOST }} + username: ${{ secrets.USERNAME }} + key: ${{ secrets.KEY }} + command: cd ${{ secrets.BETA_DIR }} && git stash && git pull && docker-compose up --build \ No newline at end of file