diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 00000000..be758ef6 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,20 @@ +name: remote ssh command +on: [push] + +jobs: + + build: + name: Build & deploy + runs-on: ubuntu-latest + environment: production + steps: + - name: executing remote ssh commands using password + uses: appleboy/ssh-action@v0.1.8 + with: + host: ${{ secrets.HOST }} + username: ${{ secrets.USERNAME }} + password: ${{ secrets.PASSWORD }} + port: ${{ secrets.PORT }} + script: | + cd /${{ secrets.USERNAME }} + bash ./deploy.sh ${{ github.event.repository.name }} \ No newline at end of file