seckit/.gitea/workflows/build-deploy.yml
cheney 8d9eef8c97
Some checks failed
Build and Deploy / build (push) Failing after 2m23s
使用 docker 下的node 打包
2026-04-16 10:55:09 +08:00

31 lines
706 B
YAML

name: Build and Deploy
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies and build
run: |
docker run --rm -v "${PWD}:/app" -w /app node:24-alpine sh -c "npm install --registry=https://registry.npmmirror.com && 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"