Files
landing/.gitea/workflows/build.yaml
RoyceDa 8efaafb833
All checks were successful
Build and Publish Landing Page / build (push) Successful in 37s
Strip components
2026-02-26 20:08:14 +02:00

38 lines
859 B
YAML

name: Build and Publish Landing Page
run-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"
strip_components: 1
rm: true