-
Notifications
You must be signed in to change notification settings - Fork 7
35 lines (33 loc) · 1 KB
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Deploy to Toolforge
on:
- push
- workflow_dispatch
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js 16
uses: actions/setup-node@v1
with:
node-version: 16
- name: Install dependencies and run tests
run: "cd Backend && echo 'In Backend directory' && npm install && echo 'Installed deps' && npm test"
update:
needs: tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: garygrossgarten/github-action-ssh@2b10f41b5a33808f6d24eafd253296766308b7c4
with:
command: >-
become edit-wizard bash -c '
cd Edit-Request-Wizard/Backend;
git pull;
npm install;
webservice --backend=kubernetes node16 restart;
'
host: login.toolforge.org
username: ankitgupta
privateKey: ${{ secrets.TOOLFORGE_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}