24 lines
548 B
YAML
24 lines
548 B
YAML
|
name: Build Site
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- develop
|
||
|
|
||
|
jobs:
|
||
|
Build-Site:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v4
|
||
|
- name: Use Node.js
|
||
|
uses: actions/setup-node@v3
|
||
|
with:
|
||
|
node-version: '16.x'
|
||
|
- run: npm install
|
||
|
- run: npm run build
|
||
|
- name: Run sshpass commands
|
||
|
uses: matheusvanzan/sshpass-action@v2
|
||
|
with:
|
||
|
host : ${{ secrets.SSH_HOST }}
|
||
|
user: ${{ secrets.SSH_USER }}
|
||
|
pass: ${{ secrets.SSH_PWD }}
|
||
|
run: ls -al
|