This commit is contained in:
Leandro Facchinetti 2020-03-20 01:49:37 -04:00
parent daa538badd
commit 283e3a2f2c
1 changed files with 2 additions and 3 deletions

View File

@ -8,14 +8,13 @@ jobs:
with: with:
node-version: "13.x" node-version: "13.x"
- run: npm install-ci-test - run: npm install-ci-test
- run: echo ${{ github.ref }}
- uses: webfactory/ssh-agent@v0.2.0 - uses: webfactory/ssh-agent@v0.2.0
with: with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
if: github.ref == 'ref/head/master' if: github.ref == 'ref/heads/master'
- run: | - run: |
ssh -o StrictHostKeyChecking=no -A root@204.48.21.111 'ssh git@github.com' ssh -o StrictHostKeyChecking=no -A root@204.48.21.111 'ssh git@github.com'
if: github.ref == 'ref/head/master' if: github.ref == 'ref/heads/master'
# - run: | # - run: |
# mkdir ~/.ssh # mkdir ~/.ssh
# echo "${{ secrets.SECRET_PRIVATE_DEPLOY_KEY }}" > ~/.ssh/id_rsa # echo "${{ secrets.SECRET_PRIVATE_DEPLOY_KEY }}" > ~/.ssh/id_rsa