Update build file
This commit is contained in:
parent
f2f3b996ee
commit
1baa7f5e51
1 changed files with 18 additions and 28 deletions
20
.github/workflows/node.js.yml
vendored
20
.github/workflows/node.js.yml
vendored
|
@ -1,31 +1,21 @@
|
|||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
|
||||
|
||||
name: Node.js CI
|
||||
name: Build and Deploy site
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [14.x]
|
||||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
- name: setup node
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
node-version: 14.x
|
||||
- run: npm ci
|
||||
- run: npm run build --if-present
|
||||
- name: SCP Files
|
||||
- name: deploy site
|
||||
uses: appleboy/scp-action@v0.1.1
|
||||
with:
|
||||
host: ${{ secrets.HOST }}
|
||||
|
|
Loading…
Reference in a new issue