seckit/.gitea/workflows/build-deploy.yml
cheney 5751ac05a2
Some checks failed
Build and Deploy / build (push) Failing after 44s
修改打包镜像
2026-04-16 10:16:08 +08:00

38 lines
767 B
YAML

name: Build and Deploy
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
container:
image: node:24-alpine
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Check Node.js version
run: node --version
- name: Install dependencies
run: npm install --registry=https://registry.npmmirror.com
- name: Build project
run: npm run build
- name: Deploy to server
uses: appleboy/scp-action@v0.1.7
with:
host: baishe.honor3.com
port: 22
username: root
password: ${{ secrets.SSH_PWD }}
source: "dist/*"
target: "/app/staticwebs/seckit"