-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathnotes.js
More file actions
45 lines (36 loc) · 1.09 KB
/
notes.js
File metadata and controls
45 lines (36 loc) · 1.09 KB
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
36
37
38
39
40
41
// name: Deploy to Ubuntu Server
// on:
// push:
// branches: ["develop"]
// pull_request:
// branches: ["develop"]
// jobs:
// deploy:
// runs-on: ubuntu-latest
// steps:
// - name: Checkout repository
// uses: actions/checkout@v2
// # - name: Install Node.js
// # uses: actions/setup-node@v2
// # with:
// # node-version: '16.x'
// # - name: Build and test
// # run: |
// # npm install
// # npm test
// - name: Deploy to server
// uses: appleboy/ssh-action@v0.1.8
// with:
// host: ${{ secrets.SERVER_HOST }}
// username: ${{ secrets.SERVER_USER }}
// password: ${{ secrets.SERVER_PASSWORD }}
// port: ${{ secrets.SERVER_PORT }}
// script: whoami
// script: |
// echo "Deploying myapp to server..."
// cd /var/www
// git clone https://github.com/PiusKevin3/crud.git
// cd crud
// npm install
// npm start
// echo "Deployment complete!"