update
This commit is contained in:
@@ -10,6 +10,12 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Debug secrets
|
||||||
|
run: |
|
||||||
|
echo "HOST=${{ secrets.HOST }}"
|
||||||
|
echo "PORT=${{ secrets.PORT }}"
|
||||||
|
echo "USER=${{ secrets.USERNAME }}"
|
||||||
|
|
||||||
- name: Deploy to server
|
- name: Deploy to server
|
||||||
uses: appleboy/ssh-action@v1.0.3
|
uses: appleboy/ssh-action@v1.0.3
|
||||||
with:
|
with:
|
||||||
@@ -17,7 +23,17 @@ jobs:
|
|||||||
username: ${{ secrets.USERNAME }}
|
username: ${{ secrets.USERNAME }}
|
||||||
key: ${{ secrets.SSH_KEY }}
|
key: ${{ secrets.SSH_KEY }}
|
||||||
port: ${{ secrets.PORT }}
|
port: ${{ secrets.PORT }}
|
||||||
|
debug: true
|
||||||
|
script_stop: true
|
||||||
script: |
|
script: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
|
||||||
|
echo "🚀 Connected to server"
|
||||||
|
whoami
|
||||||
|
pwd
|
||||||
|
|
||||||
|
echo "📁 Go to project path"
|
||||||
cd ${{ secrets.PROJECT_PATH }}
|
cd ${{ secrets.PROJECT_PATH }}
|
||||||
|
|
||||||
echo "🔄 Pulling latest code..."
|
echo "🔄 Pulling latest code..."
|
||||||
|
|||||||
Reference in New Issue
Block a user