diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e06cada..01bf145 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,21 +5,21 @@ on: - release jobs: - deployment: - name: Deploy + deploy: runs-on: ubuntu-latest steps: - - name: executing remote ssh commands using password + - name: Checkout code + uses: actions/checkout@v2 + + - name: SSH and execute commands uses: appleboy/ssh-action@v1.0.3 with: - host: ${{secrets.DEPLOY_SERVER_HOST}} - username: ${{secrets.DEPLOY_SERVER_USERNAME}} - password: "${{secrets.DEPLOY_SERVER_PASSWORD}}" - port: ${{secrets.DEPLOY_SERVER_PORT}} - script_stop: true + host: ${{ secrets.DEPLOY_SERVER_HOST }} + username: ${{ secrets.DEPLOY_SERVER_USERNAME }} + password: ${{ secrets.DEPLOY_SERVER_PASSWORD }} + port: ${{ secrets.DEPLOY_SERVER_HOST }} script: | cd stocodi-web - git fetch git pull origin release echo "${{secrets.DEPLOY_SERVER_PASSWORD}}" | sudo -S -k ./deploy.sh