CI fix tentative #20
This commit is contained in:
parent
30d438e0cb
commit
4054aeef61
1 changed files with 8 additions and 3 deletions
|
|
@ -92,10 +92,13 @@ jobs:
|
|||
- name: Setup SSH
|
||||
env:
|
||||
SSH_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
TEST_VAL: ${{ secrets.TEST_VALUE }}
|
||||
run: |
|
||||
echo "Debugging YAML vars: ${{ secrets.TEST_VALUE }}"
|
||||
echo "Debugging ENV vars: $TEST_VAL"
|
||||
mkdir -p ~/.ssh
|
||||
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_ed25519
|
||||
chmod 600 ~/.ssh/id_ed25519
|
||||
ssh-keyscan -p ${{ secrets.SERVER_PORT }} -H ${{ secrets.SERVER_IP }} >> ~/.ssh/known_hosts
|
||||
|
||||
- name: Download Artifact
|
||||
|
|
@ -106,7 +109,9 @@ jobs:
|
|||
|
||||
- name: Push
|
||||
run: |
|
||||
rsync -avz -e "ssh -p ${{ secrets.SERVER_PORT }}" --delete ./dist/ ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_IP }}:${{ matrix.dest }}
|
||||
rsync -avz -e "ssh -p ${{ secrets.SERVER_PORT }} -o StrictHostKeyChecking=no" \
|
||||
--delete ./dist/ \
|
||||
${{ secrets.SERVER_USER }}@${{ secrets.SERVER_IP }}:${{ matrix.dest }}
|
||||
|
||||
notify:
|
||||
needs: deploy
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue