ci: fixed CI on main
This commit is contained in:
parent
521797dd12
commit
46c5f9ba35
@ -14,4 +14,34 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: '16.x'
|
node-version: '16.x'
|
||||||
- run: npm install
|
- run: npm install
|
||||||
- run: npm run build
|
- run: npm run build
|
||||||
|
|
||||||
|
name: Build Site Main
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Build-Site:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Use Node.js
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: '22.x'
|
||||||
|
|
||||||
|
- run: npm install
|
||||||
|
- run: npm run build
|
||||||
|
|
||||||
|
- name: Upload via lftp (SFTP)
|
||||||
|
uses: xarses/lftp-upload-action@v1
|
||||||
|
with:
|
||||||
|
host: ${{ secrets.SFTP_HOST }}
|
||||||
|
port: 22
|
||||||
|
username: ${{ secrets.SFTP_USER }}
|
||||||
|
password: ${{ secrets.SFTP_PASSWORD }}
|
||||||
|
local_path: build/
|
||||||
|
remote_path: /home/pettinattk/www
|
Loading…
x
Reference in New Issue
Block a user