diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index dbd1065..d8dc5db 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -13,12 +13,6 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: - # - name: Connect to Yandex Cloud on my own - # run: | - # echo "${{ secrets.key }}" > "$HOME/key" - # chmod 600 "$HOME/key" - # ssh -i $HOME/key carolyn@${{ secrets.HOST }} -o StrictHostKeyChecking=no 'ls -al' - - name: webfactory/ssh-agent uses: webfactory/ssh-agent@v0.5.3 with: @@ -28,13 +22,19 @@ jobs: whoami ls -laF - # - name: Connect to Yandex Cloud - # uses: appleboy/ssh-action@master - # with: - # host: ${{ secrets.HOST }} - # username: ${{ secrets.USERNAME }} - # key: ${{ secrets.KEY }} - # port: ${{ secrets.PORT }} - # script: | - # whoami - # ls -al + - name: Connect to Yandex Cloud on my own + run: | + echo "${{ secrets.key }}" > "$HOME/key" + chmod 600 "$HOME/key" + ssh -i $HOME/key carolyn@${{ secrets.HOST }} -o StrictHostKeyChecking=no 'ls -al' + + - name: Connect to Yandex Cloud + uses: appleboy/ssh-action@master + with: + host: ${{ secrets.HOST }} + username: ${{ secrets.USERNAME }} + key: ${{ secrets.KEY }} + port: ${{ secrets.PORT }} + script: | + whoami + ls -laF