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

17 lines
467 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 }}
2020-03-20 06:54:55 +01:00
if: github.ref == 'refs/heads/master'
2020-03-21 07:16:34 +01:00
- run: npx pm2 deploy package.json production
2020-03-20 06:54:55 +01:00
if: github.ref == 'refs/heads/master'