Added the Sheepstar API to the Archive
This commit is contained in:
17
SheepstarAPIV1/.github/workflows/deploy.yml
vendored
Normal file
17
SheepstarAPIV1/.github/workflows/deploy.yml
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
name: Deploy to SSH
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Deploy NodeJS app
|
||||
uses: garygrossgarten/github-action-ssh@release
|
||||
with:
|
||||
host: ${{ secrets.REMOTE_HOST }}
|
||||
username: ${{ secrets.REMOTE_USER }}
|
||||
privateKey: ${{ secrets.REMOTE_SSH_KEY }}
|
||||
command: "cd /var/www/api/ && git reset --hard && git pull origin master && npm i && cd /var/www/ && npm install && pm2 restart api"
|
21
SheepstarAPIV1/.github/workflows/node.yml
vendored
Normal file
21
SheepstarAPIV1/.github/workflows/node.yml
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
name: Node.js test
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [10.x, 12.x, 14.x, 15.x]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
- run: npm ci
|
||||
- run: npm run build --if-present
|
Reference in New Issue
Block a user