diff --git a/.github/workflows/SAAS.yml b/.github/workflows/SAAS.yml new file mode 100644 index 0000000..9a515bf --- /dev/null +++ b/.github/workflows/SAAS.yml @@ -0,0 +1,27 @@ +name: SAAS Deployment + +on: + push: + branches: + - release-saas-1.2 +jobs: + deploy: + runs-on: ubuntu-latest + timeout-minutes: 15 + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis + - + name: Deploy Stack + uses: appleboy/ssh-action@master + with: + host: ${{ secrets.SAAS_HOST }} + username: ${{ secrets.SAAS_USERNAME }} + key: ${{ secrets.SAAS_SSH_PRIVATE_KEY }} + port: ${{ secrets.PORT }} + script: | + + cd /home/ubuntu/all-services/all-learner-ai-services + ./deploy.sh +