Thomas Cole
9241171e1b
All checks were successful
Build Site / Build-Site (18.x) (push) Successful in 45s
28 lines
831 B
YAML
28 lines
831 B
YAML
name: Build Site
|
|
run-name: ${{ github.actor }} is building Personal Site
|
|
on: [push]
|
|
jobs:
|
|
Build-Site:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node-version: [18.x]
|
|
steps:
|
|
- run: echo "Starting build job"
|
|
- uses: actions/checkout@v3
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
- run: npm install
|
|
- run: npm run build
|
|
- name: copy file via ssh password
|
|
uses: appleboy/scp-action@v0.1.4
|
|
with:
|
|
host: ${{ secrets.HOST }}
|
|
username: ${{ secrets.USERNAME }}
|
|
password: ${{ secrets.PASSWORD }}
|
|
port: ${{ secrets.PORT }}
|
|
source: "dist/*"
|
|
target: /home/thomas/testwww
|
|
strip_components: 1 |