kill-the-newsletter/.github/workflows/main.yml

23 lines
627 B
YAML
Raw Normal View History

2020-03-18 20:34:23 +01:00
on: push
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
2020-03-19 18:46:45 +01:00
with:
node-version: "13.x"
2020-03-18 20:34:23 +01:00
- run: npm install-ci-test
2020-03-20 06:37:31 +01:00
- uses: webfactory/ssh-agent@v0.2.0
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
if: github.ref == 'ref/head/master'
- run: |
ssh -A root@204.48.21.111 'ssh git@github.com'
if: github.ref == 'ref/head/master'
# - run: |
# mkdir ~/.ssh
# echo "${{ secrets.SECRET_PRIVATE_DEPLOY_KEY }}" > ~/.ssh/id_rsa
# chmod 600 ~/.ssh/id_rsa
# ssh-add