Deploy workflow
This commit is contained in:
parent
567293c89e
commit
431df2e9ce
1 changed files with 8 additions and 7 deletions
15
.github/workflows/deploy.yml
vendored
15
.github/workflows/deploy.yml
vendored
|
@ -18,10 +18,11 @@ jobs:
|
||||||
with:
|
with:
|
||||||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
|
|
||||||
- name: Deploy to server
|
- name: Deploy to SSH Server
|
||||||
run: |
|
uses: appleboy/scp-action@v0.1.0
|
||||||
ssh -o StrictHostKeyChecking=no ${{ secrets.USERNAME }}@${{ secrets.SERVER_IP }} "
|
with:
|
||||||
cd ${{ secrets.PROJECT_PATH }} &&
|
host: ${{ secrets.SERVER_IP }}
|
||||||
git fetch origin deploy &&
|
username: ${{ secrets.USERNAME }}
|
||||||
git reset --hard origin/deploy
|
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
"
|
source: ""
|
||||||
|
target: ${{ secrets.PROJECT_PATH }}
|
Loading…
Add table
Add a link
Reference in a new issue