All checks were successful
Build and Publish Landing Page / build (push) Successful in 35s
36 lines
788 B
YAML
36 lines
788 B
YAML
name: Build and Publish Landing Page
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: macos
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Install Node.js
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
node-version: '22'
|
|
|
|
- name: Install npm dependencies
|
|
run: npm install
|
|
|
|
- name: Build the landing page
|
|
run: npm run build
|
|
|
|
- name: Upload to SSH
|
|
uses: appleboy/scp-action@master
|
|
with:
|
|
host: ${{ secrets.LAND_SSH_HOST }}
|
|
username: ${{ secrets.LAND_SSH_USER }}
|
|
password: ${{ secrets.LAND_SSH_PASSWORD }}
|
|
port: 22
|
|
source: "dist/*"
|
|
target: "/var/www/html"
|
|
rm: true |